Skip to main content
The logback-spring.xml file defines the Atoti Limits logging configuration. Location: limits-starter\src\main\resources.

File values

The logback-spring.xml file has the following attributes:
ElementAttributeValueDescription
<configuration>debugfalseFlag used to enable/disable Logback debug mode
<appender>nameSTDOUTName of Logback appender used for logging
classch.qos.logback.core.ConsoleAppenderImplementation Logback appender used for logging
<encoder>
<pattern>%date{yyyy-MM-dd HH:mm:ss.SSS z} [%cyan(t=%X{trace_id}) %magenta(s=%X{span_id})] [%blue(%thread)] %highlight(%-5level) %yellow(%logger{36}.%M:%L) - %msg%n%throwableFormatting pattern of the logging output
<springProfile>nameuse-combined-logsSpring profile that activates the appender defined inside this element
<appender>nameSTDOUTName of Logback appender used for logging when the use-combined-logs Spring profile is active
classch.qos.logback.core.ConsoleAppenderImplementation Logback appender used for logging
<encoder>
<pattern>LIMITS_SERVER %date{yyyy-MM-dd HH:mm:ss.SSS z} [%thread] %level %class{36}.%M:%L - %msg%n%throwableFormatting pattern of the logging output when the use-combined-logs profile is active
<root>levelINFORoot logger level
<appender-ref>refSTDOUTName of Logback appender used by root logger
<contextListener>classch.qos.logback.classic.jul.LevelChangePropagatorImplementation of Logback context listener
<resetJUL>trueFlag used to reset all previous level configurations of all j.u.l. loggers