public abstract class LoggingCategory extends Object
Note: If the requested logger is not yet initialized, the getter will return
a temporary instance which logs to the System.out
.
Also, it is recommended to call the logger getter methods each time a logger is required, rather than
storing and reusing them.
Constructor and Description |
---|
LoggingCategory() |
Modifier and Type | Method and Description |
---|---|
abstract void |
debug(String aMessage)
Logs the specified message with priority 'debug'.
|
abstract void |
debug(UserMessage aMessage)
Logs the specified message with priority 'debug',
using the
en_US locale. |
abstract void |
error(String aMessage)
Logs the specified message with priority 'error'.
|
abstract void |
error(String aMessage,
Throwable t)
Logs the specified message and the stack trace of the exception
with priority 'error'.
|
abstract void |
error(UserMessage aMessage)
Logs the specified message with priority 'error'
using the locale
en_US . |
abstract void |
error(UserMessage aMessage,
Throwable t)
Logs the specified message and the stack trace of the exception
with priority 'error' using the locale
en_US . |
static LoggingCategory |
getKernel()
Returns the object for logging to the kernel log category.
|
static LoggingCategory |
getWorkflow()
Returns the object for logging to the workflow log category.
|
abstract void |
info(String aMessage)
Logs the specified message with priority 'info'.
|
abstract void |
info(UserMessage aMessage)
Logs the specified message with priority 'info',
using the
en_US locale. |
boolean |
isActivated(com.onwbp.boot.LogFacade.Level aLevel)
Returns
true if the logging category is activated for the specified log level,
false otherwise. |
abstract boolean |
isDebug()
Returns
true if priority 'debug'
is enabled. |
boolean |
isError()
Returns
true if priority 'error'
is enabled. |
abstract boolean |
isInfo()
Returns
true if priority 'info'
is enabled. |
abstract boolean |
isWarn()
Returns
true if priority 'warn'
is enabled. |
abstract void |
warn(String aMessage)
Logs the specified message with priority 'warn'.
|
abstract void |
warn(UserMessage aMessage)
Logs the specified message with priority 'warn',
using the
en_US locale. |
public static LoggingCategory getKernel()
public static LoggingCategory getWorkflow()
public abstract boolean isDebug()
true
if priority 'debug'
is enabled.public abstract void debug(String aMessage)
public abstract void debug(UserMessage aMessage)
en_US
locale.public abstract boolean isInfo()
true
if priority 'info'
is enabled.public abstract void info(String aMessage)
public abstract void info(UserMessage aMessage)
en_US
locale.public abstract boolean isWarn()
true
if priority 'warn'
is enabled.public boolean isError()
true
if priority 'error'
is enabled.public abstract void warn(String aMessage)
public abstract void warn(UserMessage aMessage)
en_US
locale.public abstract void error(String aMessage)
public abstract void error(UserMessage aMessage)
en_US
.public abstract void error(String aMessage, Throwable t)
public abstract void error(UserMessage aMessage, Throwable t)
en_US
.public final boolean isActivated(com.onwbp.boot.LogFacade.Level aLevel)
true
if the logging category is activated for the specified log level,
false
otherwise.