| java.lang.Object org.jfree.util.LogContext
LogContext | public class LogContext (Code) | | A log context.
author: Thomas Morgner |
Constructor Summary | |
public | LogContext(String contextPrefix) Creates a new log context. |
Method Summary | |
public void | debug(Object message) A convenience method for logging a 'debug' message. | public void | debug(Object message, Exception e) A convenience method for logging a 'debug' message. | public boolean | equals(Object o) Tests this object for equality with an arbitrary object.
Parameters: o - the object to test against (null permitted). | public void | error(Object message) A convenience method for logging an 'error' message. | public void | error(Object message, Exception e) A convenience method for logging an 'error' message. | public int | hashCode() Returns a hashcode. | public void | info(Object message) A convenience method for logging an 'info' message. | public void | info(Object message, Exception e) A convenience method for logging an 'info' message. | public boolean | isDebugEnabled() Returns true, if the log level allows debug messages to be
printed. | public boolean | isErrorEnabled() Returns true, if the log level allows error messages to be
printed. | public boolean | isInfoEnabled() Returns true, if the log level allows informational
messages to be printed. | public boolean | isWarningEnabled() Returns true, if the log level allows warning messages to be
printed. | public void | log(int level, Object message) Logs a message to the main log stream. | public void | log(int level, Object message, Exception e) Logs a message to the main log stream. | public void | warn(Object message) A convenience method for logging a 'warning' message. | public void | warn(Object message, Exception e) A convenience method for logging a 'warning' message. |
LogContext | public LogContext(String contextPrefix)(Code) | | Creates a new log context.
Parameters: contextPrefix - the prefix. |
debug | public void debug(Object message)(Code) | | A convenience method for logging a 'debug' message.
Parameters: message - the message. |
debug | public void debug(Object message, Exception e)(Code) | | A convenience method for logging a 'debug' message.
Parameters: message - the message. Parameters: e - the exception. |
equals | public boolean equals(Object o)(Code) | | Tests this object for equality with an arbitrary object.
Parameters: o - the object to test against (null permitted). A boolean. |
error | public void error(Object message)(Code) | | A convenience method for logging an 'error' message.
Parameters: message - the message. |
error | public void error(Object message, Exception e)(Code) | | A convenience method for logging an 'error' message.
Parameters: message - the message. Parameters: e - the exception. |
hashCode | public int hashCode()(Code) | | Returns a hashcode.
The hashcode. |
info | public void info(Object message)(Code) | | A convenience method for logging an 'info' message.
Parameters: message - the message. |
info | public void info(Object message, Exception e)(Code) | | A convenience method for logging an 'info' message.
Parameters: message - the message. Parameters: e - the exception. |
isDebugEnabled | public boolean isDebugEnabled()(Code) | | Returns true, if the log level allows debug messages to be
printed.
true, if messages with an log level of DEBUG are allowed. |
isErrorEnabled | public boolean isErrorEnabled()(Code) | | Returns true, if the log level allows error messages to be
printed.
true, if messages with an log level of ERROR are allowed. |
isInfoEnabled | public boolean isInfoEnabled()(Code) | | Returns true, if the log level allows informational
messages to be printed.
true, if messages with an log level of INFO are allowed. |
isWarningEnabled | public boolean isWarningEnabled()(Code) | | Returns true, if the log level allows warning messages to be
printed.
true, if messages with an log level of WARN are allowed. |
log | public void log(int level, Object message)(Code) | | Logs a message to the main log stream. All attached log targets will also
receive this message. If the given log-level is higher than the given debug-level
in the main config file, no logging will be done.
Parameters: level - log level of the message. Parameters: message - text to be logged. |
log | public void log(int level, Object message, Exception e)(Code) | | Logs a message to the main log stream. All attached logTargets will also
receive this message. If the given log-level is higher than the given debug-level
in the main config file, no logging will be done.
The exception's stacktrace will be appended to the log-stream
Parameters: level - log level of the message. Parameters: message - text to be logged. Parameters: e - the exception, which should be logged. |
warn | public void warn(Object message)(Code) | | A convenience method for logging a 'warning' message.
Parameters: message - the message. |
warn | public void warn(Object message, Exception e)(Code) | | A convenience method for logging a 'warning' message.
Parameters: message - the message. Parameters: e - the exception. |
|
|