public class LogContext extends Object
Constructor and Description |
---|
LogContext(String contextPrefix)
Creates a new log context.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(Object message)
A convenience method for logging a 'debug' message.
|
void |
debug(Object message,
Exception e)
A convenience method for logging a 'debug' message.
|
boolean |
equals(Object o)
Tests this object for equality with an arbitrary object.
|
void |
error(Object message)
A convenience method for logging an 'error' message.
|
void |
error(Object message,
Exception e)
A convenience method for logging an 'error' message.
|
int |
hashCode()
Returns a hashcode.
|
void |
info(Object message)
A convenience method for logging an 'info' message.
|
void |
info(Object message,
Exception e)
A convenience method for logging an 'info' message.
|
boolean |
isDebugEnabled()
Returns true, if the log level allows debug messages to be
printed.
|
boolean |
isErrorEnabled()
Returns true, if the log level allows error messages to be
printed.
|
boolean |
isInfoEnabled()
Returns true, if the log level allows informational
messages to be printed.
|
boolean |
isWarningEnabled()
Returns true, if the log level allows warning messages to be
printed.
|
void |
log(int level,
Object message)
Logs a message to the main log stream.
|
void |
log(int level,
Object message,
Exception e)
Logs a message to the main log stream.
|
void |
warn(Object message)
A convenience method for logging a 'warning' message.
|
void |
warn(Object message,
Exception e)
A convenience method for logging a 'warning' message.
|
public LogContext(String contextPrefix)
contextPrefix
- the prefix.public boolean isDebugEnabled()
public boolean isInfoEnabled()
public boolean isWarningEnabled()
public boolean isErrorEnabled()
public void debug(Object message)
message
- the message.public void debug(Object message, Exception e)
message
- the message.e
- the exception.public void info(Object message)
message
- the message.public void info(Object message, Exception e)
message
- the message.e
- the exception.public void warn(Object message)
message
- the message.public void warn(Object message, Exception e)
message
- the message.e
- the exception.public void error(Object message)
message
- the message.public void error(Object message, Exception e)
message
- the message.e
- the exception.public void log(int level, Object message)
level
- log level of the message.message
- text to be logged.public void log(int level, Object message, Exception e)
The exception's stacktrace will be appended to the log-stream
level
- log level of the message.message
- text to be logged.e
- the exception, which should be logged.public boolean equals(Object o)
Copyright © 2001–2018 JFree.org. All rights reserved.