|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.logger.Logger
public final class Logger
Provides a static class to Sun's logging framework.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
static EventProducingMap |
LOGGERS
loggers are the currently available loggers |
Method Summary | |
---|---|
static void |
config(Object caller,
String methodName,
String msg)
configs a message |
static void |
entering(Object caller,
String arg0,
String arg1)
Logs a method entry. |
static void |
entering(Object caller,
String arg0,
String arg1,
Object arg2)
Logs a method entry. |
static void |
entering(Object caller,
String arg0,
String arg1,
Object[] arg2)
Logs a method entry. |
static void |
exiting(Object caller,
String arg0,
String arg1)
Logs a method exit. |
static void |
exiting(Object caller,
String arg0,
String arg1,
Object arg2)
Logs a method exit. |
static void |
fine(Object caller,
String methodName,
String msg)
Logs a fine message |
static void |
finer(Object caller,
String methodName,
String msg)
Logs a finer message |
static void |
finest(Object caller,
String methodName,
String msg)
Logs a finest message |
static Class |
getDefaultHandler()
|
static String[] |
getLoggerNames()
returns the names of the currently used loggers |
static Level |
getLogLevel()
|
static void |
info(Object caller,
String methodName,
String msg)
Logs a info message |
static void |
log(Object caller,
Level arg0,
String arg1)
Logs a message |
static void |
log(Object caller,
Level arg0,
String arg1,
Object arg2)
Logs a message, with associated parameter |
static void |
log(Object caller,
Level arg0,
String arg1,
Object[] arg2)
Logs a message, with associated parameters |
static void |
log(Object caller,
Level arg0,
String arg1,
Throwable arg2)
Logs a message, with associated throwable |
static void |
log(Object caller,
LogRecord arg0)
Logs a log record |
static void |
logp(Object caller,
Level arg0,
String arg1,
String arg2,
String arg3)
Logs a message, with associated class information |
static void |
logp(Object caller,
Level arg0,
String arg1,
String arg2,
String arg3,
Object arg4)
Logs a message, with associated parameter and class information |
static void |
logp(Object caller,
Level arg0,
String arg1,
String arg2,
String arg3,
Object[] arg4)
Logs a message, with associated parameter and class information |
static void |
logp(Object caller,
Level arg0,
String arg1,
String arg2,
String arg3,
Throwable arg4)
Logs a message, with associated throwable and class information |
static void |
logrb(Object caller,
Level arg0,
String arg1,
String arg2,
String arg3,
String arg4)
Logs a message, with associated class information and resource bundle |
static void |
logrb(Object caller,
Level arg0,
String arg1,
String arg2,
String arg3,
String arg4,
Object arg5)
Logs a message, with associated parameter and class information and resource bundle |
static void |
logrb(Object caller,
Level arg0,
String arg1,
String arg2,
String arg3,
String arg4,
Object[] arg5)
Logs a message, with associated parameters and class information and resource bundle |
static void |
logrb(Object caller,
Level arg0,
String arg1,
String arg2,
String arg3,
String arg4,
Throwable arg5)
Logs a message, with associated throwable and class information and resource bundle |
static Logger |
resolveLogger(Object caller)
resolves the logger for a caller |
static void |
setDefaultHandler(Class defaultHandler)
|
static void |
setLogLevel(Level logLevel)
|
static void |
severe(Object caller,
String methodName,
String msg)
Logs a severe message |
static void |
severe(Object caller,
String methodName,
Throwable throwable)
Logs a severe message |
static void |
throwing(Object caller,
String arg0,
String arg1,
Throwable arg2)
logs a throwable message |
static void |
warning(Object caller,
String methodName,
String msg)
Logs a warning message |
static void |
warning(Object caller,
String methodName,
Throwable thrown)
Logs a warning message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EventProducingMap LOGGERS
Method Detail |
---|
public static Logger resolveLogger(Object caller)
caller
- the object invoking the loggers
public static void config(Object caller, String methodName, String msg)
caller
- the callermethodName
- the name of the methodmsg
- the messagepublic static void entering(Object caller, String arg0, String arg1, Object arg2)
caller
- the object calling the loggerarg0
- the name of the class calling the methodarg1
- the name of the method enteringarg2
- parameter to the method being enteredpublic static void entering(Object caller, String arg0, String arg1, Object[] arg2)
caller
- the object calling the loggerarg0
- the name of the class calling the methodarg1
- the name of the method enteringarg2
- parameters to the method being enteredpublic static void entering(Object caller, String arg0, String arg1)
caller
- the object calling the loggerarg0
- the name of the class calling the methodarg1
- the name of the method enteringpublic static void exiting(Object caller, String arg0, String arg1, Object arg2)
caller
- the object calling the loggerarg0
- the name of the class calling the methodarg1
- the name of the method enteringarg2
- result of the methodpublic static void exiting(Object caller, String arg0, String arg1)
caller
- the object calling the loggerarg0
- the name of the class calling the methodarg1
- the name of the method enteringpublic static void fine(Object caller, String methodName, String msg)
caller
- the object calling the loggermethodName
- the name of the methodmsg
- the messagepublic static void finer(Object caller, String methodName, String msg)
caller
- the object calling the loggermethodName
- the name of the methodmsg
- the messagepublic static void finest(Object caller, String methodName, String msg)
caller
- the object calling the loggermethodName
- the name of the methodmsg
- the messagepublic static String[] getLoggerNames()
public static void info(Object caller, String methodName, String msg)
caller
- the object calling the loggermethodName
- the name of the methodmsg
- the messagepublic static void log(Object caller, Level arg0, String arg1, Object arg2)
caller
- the object calling the loggerarg0
- the log levelarg1
- the messagearg2
- the parameterpublic static void log(Object caller, Level arg0, String arg1, Object[] arg2)
caller
- the object calling the loggerarg0
- the log levelarg1
- the messagearg2
- the parameterspublic static void log(Object caller, Level arg0, String arg1, Throwable arg2)
caller
- the object calling the loggerarg0
- the log levelarg1
- the messagearg2
- the throwablepublic static void log(Object caller, Level arg0, String arg1)
caller
- the object calling the loggerarg0
- the log levelarg1
- the messagepublic static void log(Object caller, LogRecord arg0)
caller
- the object calling the loggerarg0
- the log recordpublic static void logp(Object caller, Level arg0, String arg1, String arg2, String arg3, Object arg4)
caller
- the object calling the loggerarg0
- the log levelarg1
- the source classarg2
- the method informationarg3
- the messagearg4
- the parameterpublic static void logp(Object caller, Level arg0, String arg1, String arg2, String arg3, Object[] arg4)
caller
- the object calling the loggerarg0
- the log levelarg1
- the source classarg2
- the method informationarg3
- the messagearg4
- the parameterspublic static void logp(Object caller, Level arg0, String arg1, String arg2, String arg3, Throwable arg4)
caller
- the object calling the loggerarg0
- the log levelarg1
- the source classarg2
- the method informationarg3
- the messagearg4
- the parameterspublic static void logp(Object caller, Level arg0, String arg1, String arg2, String arg3)
caller
- the object calling the loggerarg0
- the log levelarg1
- the source classarg2
- the method informationarg3
- the messagepublic static void logrb(Object caller, Level arg0, String arg1, String arg2, String arg3, String arg4, Object arg5)
caller
- the object calling the loggerarg0
- the log levelarg1
- the source classarg2
- the method informationarg3
- the resource bundlearg4
- the messagearg5
- the parameterpublic static void logrb(Object caller, Level arg0, String arg1, String arg2, String arg3, String arg4, Object[] arg5)
caller
- the object calling the loggerarg0
- the log levelarg1
- the source classarg2
- the method informationarg3
- the resource bundlearg4
- the messagearg5
- the parameterspublic static void logrb(Object caller, Level arg0, String arg1, String arg2, String arg3, String arg4, Throwable arg5)
caller
- the object calling the loggerarg0
- the log levelarg1
- the source classarg2
- the method informationarg3
- the resource bundlearg4
- the messagearg5
- the parameterspublic static void logrb(Object caller, Level arg0, String arg1, String arg2, String arg3, String arg4)
caller
- the object calling the loggerarg0
- the log levelarg1
- the source classarg2
- the method informationarg3
- the resource bundlearg4
- the messagepublic static void severe(Object caller, String methodName, String msg)
caller
- the object calling the loggermethodName
- the name of the methodmsg
- the messagepublic static void severe(Object caller, String methodName, Throwable throwable)
caller
- the object calling the loggermethodName
- the name of the methodthrowable
- the throwablepublic static void throwing(Object caller, String arg0, String arg1, Throwable arg2)
caller
- the object invoking the loggerarg0
- the classarg1
- the methodarg2
- the throwablepublic static void warning(Object caller, String methodName, String msg)
caller
- the object calling the loggermethodName
- the name of the methodmsg
- the messagepublic static void warning(Object caller, String methodName, Throwable thrown)
caller
- the object calling the loggermethodName
- the name of the methodthrown
- the thrownpublic static Class getDefaultHandler()
public static void setDefaultHandler(Class defaultHandler)
defaultHandler
- The defaultHandler to set.public static Level getLogLevel()
public static void setLogLevel(Level logLevel)
logLevel
- The logLevel to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |