Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.util.LogContext
public class LogContext
extends java.lang.Object
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
boolean |
|
void |
|
void |
|
int |
|
void |
|
void |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
public LogContext(String contextPrefix)
Creates a new log context.
- Parameters:
contextPrefix
- the prefix.
public void debug(Object message)
A convenience method for logging a 'debug' message.
- Parameters:
message
- the message.
public void debug(Object message, Exception e)
A convenience method for logging a 'debug' message.
- Parameters:
message
- the message.e
- the exception.
public boolean equals(Object o)
Tests this object for equality with an arbitrary object.
- Parameters:
o
- the object to test against (null
permitted).
- Returns:
- A boolean.
public void error(Object message)
A convenience method for logging an 'error' message.
- Parameters:
message
- the message.
public void error(Object message, Exception e)
A convenience method for logging an 'error' message.
- Parameters:
message
- the message.e
- the exception.
public void info(Object message)
A convenience method for logging an 'info' message.
- Parameters:
message
- the message.
public void info(Object message, Exception e)
A convenience method for logging an 'info' message.
- Parameters:
message
- the message.e
- the exception.
public boolean 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.
public boolean 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.
public boolean 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.
public boolean 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.
public void log(int level, Object message)
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.
public void log(int level, Object message, Exception e)
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.
public void warn(Object message)
A convenience method for logging a 'warning' message.
- Parameters:
message
- the message.
public void warn(Object message, Exception e)
A convenience method for logging a 'warning' message.
- Parameters:
message
- the message.e
- the exception.