Package org.jfree.util
Class LogContext
java.lang.Object
org.jfree.util.LogContext
A log context.
- Author:
- Thomas Morgner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidA convenience method for logging a 'debug' message.voidA convenience method for logging a 'debug' message.booleanTests this object for equality with an arbitrary object.voidA convenience method for logging an 'error' message.voidA convenience method for logging an 'error' message.inthashCode()Returns a hashcode.voidA convenience method for logging an 'info' message.voidA convenience method for logging an 'info' message.booleanReturns true, if the log level allows debug messages to be printed.booleanReturns true, if the log level allows error messages to be printed.booleanReturns true, if the log level allows informational messages to be printed.booleanReturns true, if the log level allows warning messages to be printed.voidLogs a message to the main log stream.voidLogs a message to the main log stream.voidA convenience method for logging a 'warning' message.voidA convenience method for logging a 'warning' message.
-
Constructor Details
-
LogContext
Creates a new log context.- Parameters:
contextPrefix- the prefix.
-
-
Method Details
-
isDebugEnabled
Returns true, if the log level allows debug messages to be printed.- Returns:
- true, if messages with an log level of DEBUG are allowed.
-
isInfoEnabled
Returns true, if the log level allows informational messages to be printed.- Returns:
- true, if messages with an log level of INFO are allowed.
-
isWarningEnabled
Returns true, if the log level allows warning messages to be printed.- Returns:
- true, if messages with an log level of WARN are allowed.
-
isErrorEnabled
Returns true, if the log level allows error messages to be printed.- Returns:
- true, if messages with an log level of ERROR are allowed.
-
debug
A convenience method for logging a 'debug' message.- Parameters:
message- the message.
-
debug
A convenience method for logging a 'debug' message.- Parameters:
message- the message.e- the exception.
-
info
A convenience method for logging an 'info' message.- Parameters:
message- the message.
-
info
A convenience method for logging an 'info' message.- Parameters:
message- the message.e- the exception.
-
warn
A convenience method for logging a 'warning' message.- Parameters:
message- the message.
-
warn
A convenience method for logging a 'warning' message.- Parameters:
message- the message.e- the exception.
-
error
A convenience method for logging an 'error' message.- Parameters:
message- the message.
-
error
A convenience method for logging an 'error' message.- Parameters:
message- the message.e- the exception.
-
log
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.message- text to be logged.
-
log
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.message- text to be logged.e- the exception, which should be logged.
-
equals
Tests this object for equality with an arbitrary object. -
hashCode
Returns a hashcode.
-