java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.logging.InternalLogger |
An internal (debug-mode only) logger. Production builds should not use such loggers.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
InternalLogger(String name) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
catching(Throwable t)
Log an exception's stack trace.
| ||||||||||
void |
catching(Throwable t, String format, Object[] params)
Log an exception's stack trace, prefixed by an optional message.
| ||||||||||
void |
catching(Throwable t, String message)
Log an exception's stack trace, prefixed by an optional message.
| ||||||||||
void |
catchingSilent(Throwable t)
Log an exception at the debug level.
| ||||||||||
void |
debug(String format, Object[] params)
Log a debug message.
| ||||||||||
void |
error(String format, Object[] params)
Log an error message.
| ||||||||||
void |
fine(String format, Object[] params)
Alias for #trace(String, Object...) warn().
| ||||||||||
int |
getEnabledLevel()
Retrieve the cut-off level for that logger.
| ||||||||||
String | getName() | ||||||||||
void |
i(String format, Object[] params)
Reserved for internal logging.
| ||||||||||
void |
info(String format, Object[] params)
Log an information message.
| ||||||||||
void |
log(int level, boolean raw, String format, Object... params)
In non-debug mode, this method does nothing.
| ||||||||||
void |
setEnabledLevel(int level)
Set the cut-off level for a logger.
| ||||||||||
void |
severe(String format, Object[] params)
Alias for #error(String, Object...) error().
| ||||||||||
void |
status(String format, Object[] params)
Log a transient status message (STATUS).
| ||||||||||
void |
trace(String format, Object[] params)
Log a trace message.
| ||||||||||
void |
warn(String format, Object[] params)
Log a warning message.
| ||||||||||
void |
warning(String format, Object[] params)
Alias for #warn(String, Object...) warn().
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.util.logging.ILogger
|
Log an exception's stack trace.
t | the throwable |
---|
Log an exception's stack trace, prefixed by an optional message.
Log an exception's stack trace, prefixed by an optional message.
message | optional message prefixing stack trace |
---|
Log an exception at the debug level.
t | the throwable |
---|
Log a debug message.
format | format string if parameters are provided, else standard string |
---|---|
params | parameters |
Log an error message.
format | format string if parameters are provided, else standard string |
---|---|
params | parameters |
Alias for #trace(String, Object...) warn(). Log a trace message.
Retrieve the cut-off level for that logger.
LEVEL_CATCHING
Reserved for internal logging. In Release builds, calling this method does nothing.
format | format string if parameters are provided, else standard string |
---|---|
params | parameters |
Log an information message.
format | format string if parameters are provided, else standard string |
---|---|
params | parameters |
In non-debug mode, this method does nothing.
Set the cut-off level for a logger.
level | the cut-off level: all logging calls with a level equal or above to the cut-off will be displayed |
---|
Alias for #error(String, Object...) error(). Log an error message.
format | format string if parameters are provided, else standard string |
---|---|
params | parameters |
Log a transient status message (STATUS). Status messages are not directed to the regular
output destinations; instead, they are directed to the status sinks
. Only the newest message is stored in the sink.
Log a trace message.
format | format string if parameters are provided, else standard string |
---|---|
params | parameters |
Log a warning message.
format | format string if parameters are provided, else standard string |
---|---|
params | parameters |
Alias for #warn(String, Object...) warn(). Log a warning message.