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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddebug(UserMessage aMessage) Logs the specified message with priority 'debug', using theen_USlocale.abstract voidLogs the specified message with priority 'debug'.abstract voiderror(UserMessage aMessage) Logs the specified message with priority 'error' using the localeen_US.abstract voiderror(UserMessage aMessage, Throwable t) Logs the specified message and the stack trace of the exception with priority 'error' using the localeen_US.abstract voidLogs the specified message with priority 'error'.abstract voidLogs the specified message and the stack trace of the exception with priority 'error'.static LoggingCategoryReturns the object for logging to the kernel log category.static LoggingCategoryReturns the object for logging to the workflow log category.abstract voidinfo(UserMessage aMessage) Logs the specified message with priority 'info', using theen_USlocale.abstract voidLogs the specified message with priority 'info'.abstract booleanisDebug()Returnstrueif priority 'debug' is enabled.booleanisError()Returnstrueif priority 'error' is enabled.abstract booleanisInfo()Returnstrueif priority 'info' is enabled.abstract booleanisWarn()Returnstrueif priority 'warn' is enabled.abstract voidwarn(UserMessage aMessage) Logs the specified message with priority 'warn', using theen_USlocale.abstract voidLogs 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()Returnstrueif priority 'debug' is enabled. -
debug
Logs the specified message with priority 'debug'. -
debug
Logs the specified message with priority 'debug', using theen_USlocale.- Since:
- 5.2.4
-
isInfo
public abstract boolean isInfo()Returnstrueif priority 'info' is enabled. -
info
Logs the specified message with priority 'info'. -
info
Logs the specified message with priority 'info', using theen_USlocale.- Since:
- 5.2.4
-
isWarn
public abstract boolean isWarn()Returnstrueif priority 'warn' is enabled. -
isError
public boolean isError()Returnstrueif 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_USlocale. -
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
-