|
||||||||||
| 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 nl.tudelft.simulation.event.util.EventProducingMap<java.lang.String,java.util.logging.Logger> |
LOGGERS
loggers are the currently available loggers |
| Method Summary | |
|---|---|
static void |
config(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
configs a message |
static void |
entering(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1)
Logs a method entry. |
static void |
entering(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1,
java.lang.Object arg2)
Logs a method entry. |
static void |
entering(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1,
java.lang.Object[] arg2)
Logs a method entry. |
static void |
exiting(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1)
Logs a method exit. |
static void |
exiting(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1,
java.lang.Object arg2)
Logs a method exit. |
static void |
fine(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
Logs a fine message |
static void |
finer(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
Logs a finer message |
static void |
finest(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
Logs a finest message |
static java.lang.Class |
getDefaultHandler()
|
static java.lang.String[] |
getLoggerNames()
returns the names of the currently used loggers |
static java.util.logging.Level |
getLogLevel()
|
static void |
info(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
Logs a info message |
static void |
log(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1)
Logs a message |
static void |
log(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.Object arg2)
Logs a message, with associated parameter |
static void |
log(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.Object[] arg2)
Logs a message, with associated parameters |
static void |
log(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.Throwable arg2)
Logs a message, with associated throwable |
static void |
log(java.lang.Object caller,
java.util.logging.LogRecord arg0)
Logs a log record |
static void |
logp(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
Logs a message, with associated class information |
static void |
logp(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.Object arg4)
Logs a message, with associated parameter and class information |
static void |
logp(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.Object[] arg4)
Logs a message, with associated parameter and class information |
static void |
logp(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.Throwable arg4)
Logs a message, with associated throwable and class information |
static void |
logrb(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4)
Logs a message, with associated class information and resource bundle |
static void |
logrb(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.Object arg5)
Logs a message, with associated parameter and class information and resource bundle |
static void |
logrb(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.Object[] arg5)
Logs a message, with associated parameters and class information and resource bundle |
static void |
logrb(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.Throwable arg5)
Logs a message, with associated throwable and class information and resource bundle |
static java.util.logging.Logger |
resolveLogger(java.lang.Object caller)
resolves the logger for a caller |
static void |
setDefaultHandler(java.lang.Class defaultHandler)
|
static void |
setLogLevel(java.util.logging.Level logLevel)
|
static void |
severe(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
Logs a severe message |
static void |
severe(java.lang.Object caller,
java.lang.String methodName,
java.lang.Throwable throwable)
Logs a severe message |
static void |
throwing(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1,
java.lang.Throwable arg2)
logs a throwable message |
static void |
warning(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
Logs a warning message |
static void |
warning(java.lang.Object caller,
java.lang.String methodName,
java.lang.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 nl.tudelft.simulation.event.util.EventProducingMap<java.lang.String,java.util.logging.Logger> LOGGERS
| Method Detail |
|---|
public static java.util.logging.Logger resolveLogger(java.lang.Object caller)
caller - the object invoking the loggers
public static void config(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
caller - the callermethodName - the name of the methodmsg - the message
public static void entering(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1,
java.lang.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 entered
public static void entering(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1,
java.lang.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 entered
public static void entering(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1)
caller - the object calling the loggerarg0 - the name of the class calling the methodarg1 - the name of the method entering
public static void exiting(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1,
java.lang.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 method
public static void exiting(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1)
caller - the object calling the loggerarg0 - the name of the class calling the methodarg1 - the name of the method entering
public static void fine(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
caller - the object calling the loggermethodName - the name of the methodmsg - the message
public static void finer(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
caller - the object calling the loggermethodName - the name of the methodmsg - the message
public static void finest(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
caller - the object calling the loggermethodName - the name of the methodmsg - the messagepublic static java.lang.String[] getLoggerNames()
public static void info(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
caller - the object calling the loggermethodName - the name of the methodmsg - the message
public static void log(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.Object arg2)
caller - the object calling the loggerarg0 - the log levelarg1 - the messagearg2 - the parameter
public static void log(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.Object[] arg2)
caller - the object calling the loggerarg0 - the log levelarg1 - the messagearg2 - the parameters
public static void log(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.Throwable arg2)
caller - the object calling the loggerarg0 - the log levelarg1 - the messagearg2 - the throwable
public static void log(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1)
caller - the object calling the loggerarg0 - the log levelarg1 - the message
public static void log(java.lang.Object caller,
java.util.logging.LogRecord arg0)
caller - the object calling the loggerarg0 - the log record
public static void logp(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.Object arg4)
caller - the object calling the loggerarg0 - the log levelarg1 - the source classarg2 - the method informationarg3 - the messagearg4 - the parameter
public static void logp(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.Object[] arg4)
caller - the object calling the loggerarg0 - the log levelarg1 - the source classarg2 - the method informationarg3 - the messagearg4 - the parameters
public static void logp(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.Throwable arg4)
caller - the object calling the loggerarg0 - the log levelarg1 - the source classarg2 - the method informationarg3 - the messagearg4 - the parameters
public static void logp(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3)
caller - the object calling the loggerarg0 - the log levelarg1 - the source classarg2 - the method informationarg3 - the message
public static void logrb(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.Object arg5)
caller - the object calling the loggerarg0 - the log levelarg1 - the source classarg2 - the method informationarg3 - the resource bundlearg4 - the messagearg5 - the parameter
public static void logrb(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.Object[] arg5)
caller - the object calling the loggerarg0 - the log levelarg1 - the source classarg2 - the method informationarg3 - the resource bundlearg4 - the messagearg5 - the parameters
public static void logrb(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.Throwable arg5)
caller - the object calling the loggerarg0 - the log levelarg1 - the source classarg2 - the method informationarg3 - the resource bundlearg4 - the messagearg5 - the parameters
public static void logrb(java.lang.Object caller,
java.util.logging.Level arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4)
caller - the object calling the loggerarg0 - the log levelarg1 - the source classarg2 - the method informationarg3 - the resource bundlearg4 - the message
public static void severe(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
caller - the object calling the loggermethodName - the name of the methodmsg - the message
public static void severe(java.lang.Object caller,
java.lang.String methodName,
java.lang.Throwable throwable)
caller - the object calling the loggermethodName - the name of the methodthrowable - the throwable
public static void throwing(java.lang.Object caller,
java.lang.String arg0,
java.lang.String arg1,
java.lang.Throwable arg2)
caller - the object invoking the loggerarg0 - the classarg1 - the methodarg2 - the throwable
public static void warning(java.lang.Object caller,
java.lang.String methodName,
java.lang.String msg)
caller - the object calling the loggermethodName - the name of the methodmsg - the message
public static void warning(java.lang.Object caller,
java.lang.String methodName,
java.lang.Throwable thrown)
caller - the object calling the loggermethodName - the name of the methodthrown - the thrownpublic static java.lang.Class getDefaultHandler()
public static void setDefaultHandler(java.lang.Class defaultHandler)
defaultHandler - The defaultHandler to set.public static java.util.logging.Level getLogLevel()
public static void setLogLevel(java.util.logging.Level logLevel)
logLevel - The logLevel to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||