org.mortbay.log
public class LogImpl extends Object implements Log
DEBUG - if set debugging is output is enabled. DEBUG_PATTERNS - A list of substring patterns used to match against log information for fine grained control of debug logging. DEBUG_VERBOSE - If set to a positive integer, trace and info are enabled. If set to zero, then info is enabled. LOG_SINKS - List of class names used to instantiate the log sinks.This logger can be configured with the org.mortbay.log.Factory
See Also: LogFactory
Field Summary | |
---|---|
static String | DEBUG |
static String | ERROR |
static String | FAIL |
static String | INFO |
static String | TRACE |
static String | WARN |
LogSink[] | _sinks |
Constructor Summary | |
---|---|
LogImpl() Construct the shared instance of Log that decodes the
options setup in the environments properties. |
Method Summary | |
---|---|
void | add(LogSink logSink) Add a Log Sink. |
void | add(String logSinkClass) Add a Log Sink. |
void | debug(Object m) |
void | debug(Object m, Throwable ex) |
void | deleteStoppedLogSinks() |
void | error(Object arg0) |
void | error(Object arg0, Throwable arg1) |
void | fatal(Object arg0) |
void | fatal(Object arg0, Throwable arg1) |
boolean | getDebug() Get the debug status. |
String | getDebugPatterns() Get the debug patterns. |
LogSink[] | getLogSinks() |
boolean | getSuppressWarnings() Get the warnings suppression status. |
int | getVerbose() Get the verbosity level. |
void | info(Object arg0) |
void | info(Object arg0, Throwable arg1) |
boolean | isDebugEnabled() |
boolean | isErrorEnabled() |
boolean | isFatalEnabled() |
boolean | isInfoEnabled() |
boolean | isTraceEnabled() |
boolean | isWarnEnabled() |
void | message(String tag, Object msg, Frame frame) |
void | message(String tag, Object msg, Frame frame, long time) Log a message. |
void | message(String tag, Object msg) Log a message. |
void | message(String tag, Object msg, int depth) Log a message. |
void | reset() No logging.
|
void | setDebug(boolean debug) Set if debugging is on or off. |
void | setDebugPatterns(String patterns) Set debug patterns. |
void | setSuppressWarnings(boolean warnings) Set warning suppression. |
void | setVerbose(int verbose) Set verbosity level. |
void | trace(Object arg0) |
void | trace(Object arg0, Throwable arg1) |
void | warn(Object arg0) |
void | warn(Object arg0, Throwable arg1) |
Parameters: logSink
Parameters: logSinkClass The logsink classname or null for the default.
Returns: the debug status
Returns: Coma separated list of debug patterns
Returns: the warnings suppression status
Returns: the verbosity level
Parameters: tag Tag for type of log msg The message frame The frame that generated the message. time The time stamp of the message.
Parameters: tag Tag for type of log msg The message
Parameters: tag Tag for type of log msg The message
Parameters: debug
Parameters: patterns comma separated string of patterns
Parameters: warnings Warnings suppress if this is true and debug is false
Parameters: verbose