Package de.galan.commons.logging


package de.galan.commons.logging
  • Classes
    Class
    Description
    Configures the logger (Log4j2)
    Returns the Log4j2 logger for the calling class (for Slf4j use Slogr).
    Manages fields per thread, which are serialized as json for further processing (eg.
    Log4j2 Message for Logger that support parameterized messages, using {} as placeholder, eg.:
    info("Hello {}", "world"); // => "Hello {world}"
    info("Hello {} {}", "beautiful", "world"); // => "Hello {beautiful} {world}"
    error("Something failed: {}", ex, "do'h"); // => "Hello {beautiful} {world}"


    If the parameters should be available as json-encoded metadata for eg.
    Construction of PayloadContextMessages
    (Log4j2) Message for Logger that support parameterized messages, using {} as placeholder, eg.:
    info("Hello {}", "world"); // => "Hello {world}"
    info("Hello {} {}", "beautiful", "world"); // => "Hello {beautiful} {world}"
    error("Something failed: {}", ex, "do'h"); // => "Hello {beautiful} {world}"


    It is also encouraged to give the parameter names with identifier set to true.
    Construction of PayloadMessages
    Facade for the logging-framework (currently Log4j2).
    Using fluent interface to construct ThreadContext informations (formerly known as MDC /NDC)
    Returns the Slf4j logger for the calling class (for Log4j2 use Logr).