Interface for a logging object. A logging object provides mechanism
for logging errors and messages that are of interest to someone who
is trying to monitor the system.
author: Anil Vijendran (akv@eng.sun.com) since: Tomcat 3.1
log(String logName, String message, int verbosityLevel) Prints the log message on a specified logger.
public static void
log(String logName, String message) Prints the log message on a specified logger at the "default"
log leve: INFORMATION
Parameters: name - the name of the logger.
final public void
log(String message, int verbosityLevel) Prints the log message.
setTimestampFormat(String value) If we are timestamping at all, what format do we use to print
the timestamp? See java.text.SimpleDateFormat.
Default = "yyyy-MM-dd hh:mm:ss".
public static void log(String logName, String message, int verbosityLevel)(Code)
Prints the log message on a specified logger.
Parameters: name - the name of the logger. Parameters: message - the message to log. Parameters: verbosityLevel - what type of message is this? (WARNING/DEBUG/INFO etc)
Prints the log message on a specified logger at the "default"
log leve: INFORMATION
Parameters: name - the name of the logger. Parameters: message - the message to log.
log
final public void log(String message, int verbosityLevel)(Code)
Prints the log message.
Parameters: message - the message to log. Parameters: verbosityLevel - what type of message is this?(WARNING/DEBUG/INFO etc)
Prints log message and stack trace.
Parameters: message - the message to log. Parameters: t - the exception that was thrown. Parameters: verbosityLevel - what type of message is this?(WARNING/DEBUG/INFO etc)
matchVerbosityLevel
public boolean matchVerbosityLevel(int verbosityLevel)(Code)
Subclasses implement these methods which are called by the
log(..) methods internally.
Parameters: message - the message to log. Parameters: t - the exception that was thrown.
removeLogger
public static void removeLogger(Logger logger)(Code)
Do we need to time stamp this or not?
Parameters: value - "yes/no" or "true/false"
setTimestampFormat
public void setTimestampFormat(String value)(Code)
If we are timestamping at all, what format do we use to print
the timestamp? See java.text.SimpleDateFormat.
Default = "yyyy-MM-dd hh:mm:ss". Special case: "msec" => raw
number of msec since epoch, very efficient but not
user-friendly