Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

The root log level can be set as well by application-wide parameter logging.level.root.

It is possible to bind declare and bind multiple appenders in the logging configuration file.

Example logging configuration file

Code Block
<configuration>

	<!--Activate this to log also in tomcat std out-->
	<appender name="CONSOLE"
		class="ch.qos.logback.core.ConsoleAppender">
		<encoder>	
			<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%32.32X{traceId}/%16.16X{spanId}] [%.-1p] [%20.20thread] %70.70(%30.30logger{10}.%M \(%4L\) ): %m%n</pattern>
		</encoder>
	</appender>
	
	<root level="INFO">
		<appender-ref ref="CONSOLE" />
	</root>
</configuration>