This article gives an example log configuration file and explains it roughly.
To activate this file, copy it to the directory containing all other configurations for tia Content Server Core and set the parameter logging.config
with path and file name of this file.
Logging configuration to standard out
This example demonstrates how to set up tia Content Server to standard out.
...
Info |
---|
The root log level can be set as well by application-wide parameter 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> |