public static class LoggerEx.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LoggerEx |
build(java.lang.Class<?> loggerClass) |
LoggerEx |
build(java.lang.String loggerName) |
LoggerEx |
build(java.lang.String parentName,
java.lang.String thisName)
Convenience function for building child loggers
|
LoggerEx.Builder |
eventSystem(java.lang.String systemId)
Sets the System Id, which is used by the event logging functions to mark which system the events belong to.
|
LoggerEx.Builder |
identObject(java.lang.Object identObj)
Adds a static identity object.
|
LoggerEx.Builder |
mdcContext(java.lang.Object... keyValues)
Adds values to the static mdc context.
|
LoggerEx.Builder |
mutableIdentObject(java.lang.Object identObj)
Adds an identity object that will be calculated for each log message.
|
public LoggerEx.Builder identObject(java.lang.Object identObj)
public LoggerEx.Builder mutableIdentObject(java.lang.Object identObj)
public LoggerEx.Builder mdcContext(java.lang.Object... keyValues)
public LoggerEx.Builder eventSystem(java.lang.String systemId)
The primary goal of events is to provide a way to log certain messages that might be useful to see apart from other messages of the same level, potentially in combination with other systems. For example, there are events for system startup and shutdown, which are useful to see in combination with other systems, without seeing all of the general system info messages as well. There will often be a fine line between the use of events and MDC values, however, a good guide is that if there might be different values for the concept, such as different profile names, session ids, etc, then MDC should be used.
public LoggerEx build(java.lang.Class<?> loggerClass)
public LoggerEx build(java.lang.String loggerName)
public LoggerEx build(java.lang.String parentName, java.lang.String thisName)