Package com.orchestranetworks.service
Class LoggingCategory
java.lang.Object
com.orchestranetworks.service.LoggingCategory
This class provides methods for logging messages according to their severities.
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.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
debug
(UserMessage aMessage) Logs the specified message with priority 'debug', using theen_US
locale.abstract void
Logs the specified message with priority 'debug'.abstract void
error
(UserMessage aMessage) Logs the specified message with priority 'error' using the localeen_US
.abstract void
error
(UserMessage aMessage, Throwable t) Logs the specified message and the stack trace of the exception with priority 'error' using the localeen_US
.abstract void
Logs the specified message with priority 'error'.abstract void
Logs the specified message and the stack trace of the exception with priority 'error'.static LoggingCategory
Returns the object for logging to the kernel log category.static LoggingCategory
Returns the object for logging to the workflow log category.abstract void
info
(UserMessage aMessage) Logs the specified message with priority 'info', using theen_US
locale.abstract void
Logs the specified message with priority 'info'.abstract boolean
isDebug()
Returnstrue
if priority 'debug' is enabled.boolean
isError()
Returnstrue
if priority 'error' is enabled.abstract boolean
isInfo()
Returnstrue
if priority 'info' is enabled.abstract boolean
isWarn()
Returnstrue
if priority 'warn' is enabled.abstract void
warn
(UserMessage aMessage) Logs the specified message with priority 'warn', using theen_US
locale.abstract void
Logs the specified message with priority 'warn'.
-
Constructor Details
-
LoggingCategory
public LoggingCategory()
-
-
Method Details
-
getKernel
Returns the object for logging to the kernel log category. -
getWorkflow
Returns the object for logging to the workflow log category. -
isDebug
public abstract boolean isDebug()Returnstrue
if priority 'debug' is enabled. -
debug
Logs the specified message with priority 'debug'. -
debug
Logs the specified message with priority 'debug', using theen_US
locale.- Since:
- 5.2.4
-
isInfo
public abstract boolean isInfo()Returnstrue
if priority 'info' is enabled. -
info
Logs the specified message with priority 'info'. -
info
Logs the specified message with priority 'info', using theen_US
locale.- Since:
- 5.2.4
-
isWarn
public abstract boolean isWarn()Returnstrue
if priority 'warn' is enabled. -
isError
public boolean isError()Returnstrue
if priority 'error' is enabled.- Since:
- 5.8.0
-
warn
Logs the specified message with priority 'warn'. -
warn
Logs the specified message with priority 'warn', using theen_US
locale. -
error
Logs the specified message with priority 'error'. -
error
Logs the specified message with priority 'error' using the localeen_US
.- Since:
- 5.2.4
-
error
Logs the specified message and the stack trace of the exception with priority 'error'. -
error
Logs the specified message and the stack trace of the exception with priority 'error' using the localeen_US
.- Since:
- 5.2.4
-