The logging output can be configured according to your needs. It generates textual messages, attaches some meta information like tags (describing the originating subsystem), a log level (describing the importance of the message), and time stamps before printing them somewhere. The JVM-internal, unified logging infrastructure is very similar to known logging frameworks like Log4j or Logback that you might have used for your application. The -Xlog option can be a bit intimidating, so in this post we will master it step by step, learning how to use it to select which messages and information to show. ![]() This gives uniform access to log messages from different subsystems such as class loading, threading, the garbage collector, the module system, or the interaction with the underlying operating system. Java 9 comes with a unified logging architecture ( JEP 158) that pipes a lot of messages that the JVM generates through the same mechanism, which can be configured with the -Xlog option.
0 Comments
Leave a Reply. |