Decorations

In the context of Java 9's logging framework, decorations are metadata about the log message. Here is the 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 current date and time using 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 ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.