Decorations

In the context of Java's logging framework, decorations are metadata about the log message. Here is an alphabetic list of decorations that are available:

  • level: The level associated with the logged message
  • pid: PID = Processor Identifier
  • tags: The tag set associated with the logged message
  • tid: TID = Thread Identifier
  • time: Refers to the current date and time, using the ISO-8601 format
  • timemillis: Current time in milliseconds
  • timenanos: Current time in nanoseconds
  • uptime: Time, in seconds and milliseconds, since the JVM started
  • uptimemillis: Time, in milliseconds, since the JVM started
  • uptimenanos: Time, in nanoseconds, since the JVM started

Decorations can be surpassed or included in unified logging output. Regardless of which decorations are used, they will appear in the output in the following order:

  1. time
  2. uptime
  3. timemillis
  4. uptimemillis
  5. timenanos
  6. uptimenanos
  7. pid
  8. tid
  9. level
  10. tags
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset