Write logs with MicroProfile Telemetry logging
You can use MicroProfile Telemetry to mange your logs, along with traces and metrics. When you enable the MicroProfile Telemetry feature version 2.0 or later, MicroProfile Telemetry automatically collects any logs that are sent to the java.util.logging
API.
Any messages that are logged at a java.util.logging.Level
log level of INFO
and above are considered messages. Levels below INFO
are considered trace. By default, MicroProfile Telemetry automatically collects messages, but you can configure the sources that it collects from in your server.xml
file. For more information, see Collect logs from a specified source.
For more information about configuring MicroProfile Telemetry to collect and emit logs, metrics, and trace, see Enable observability with MicroProfile Telemetry.