/
Configuration of logging framework in container deployment

Configuration of logging framework in container deployment

This article focuses on container-deployment of tia® Core products.

 

By default, tia® Core logs to Standard out.

There it may be read by observability tools.

Hint: Logs written to stdout or stderr may also be viewed by docker command (if using another container runtime, please refer to its documentation):

  • docker container logs <container name or id>

Using this command with option -f allows to watch log file tail continuously.

 

Custom configuration

The log level can be configured for the complete product (parameter logging.level.root), or for a special module only (parameter logging.level.<package>).

The log row format, the log location, and other can be configured in a log configuration file (the default file shipped with the product is logback-spring.xml). It is recommended to create a new logging configuration file. Use parameter logging.config to point to the custom configuration file.

The logging framework included in tia® Content Server Core is SLFJ4-compliant. For documentation refer to the https://www.slf4j.org/manual.html. Since tia® Content Server Core Release 3.0.0 this is Logback framework (see Logback Home).

 

tia® Content Server Core parameters for logging:

Parameter

Description

Supported Values

Required

Default value

logging.level.root

Log Level for all logging.

If log level for package is configured, package configuration will overrule.

Recommended for Production is WARN or ERROR.

OFF

ERROR

WARN

INFO

DEBUG

no

DEBUG

logging.level.<package>

Example:

logging.level.com.software.kgs

Definition of the log level for the package.

 

OFF

ERROR

WARN

INFO

DEBUG

no

 

logging.config

Specifies a location for the configuration file of the logging framework.

Path and filename

no

logback-spring.xml

For more information how to apply these parameters, please read Application wide settings.

 

For example logging configuration files see:

 

 

 

Related content

Logging
Read with this
Example: Logging configuration to standard out
Example: Logging configuration to standard out
More like this
Application wide settings
Application wide settings
Read with this
Example: Logging configuration for rolling log file
Example: Logging configuration for rolling log file
More like this
Reference of application-wide parameters
Reference of application-wide parameters
Read with this
Example: Logging configuration for JSON logging
Example: Logging configuration for JSON logging
More like this