Custom Log Configurations
If the preconfigured logging styles do not meet your requirements, you can customize the logging configuration. To do so, prepare an external configuration file and specify the path to that file in an environment variable ($LOGGING_CONFIGURATION).
Documentation for logback appenders can be found here: https://logback.qos.ch/manual/appenders.html
To construct the external configuration file, extract a logback configuration from the flexnetls.jar file and modify it to suit your requirements. The following tables shows the existing configurations.
Logging Style |
Extraction Command |
CONTINUOUS |
unzip -p flexnetls.jar BOOT-INF/classes/logback-continuous.xml |
CONTINUOUS_UTC |
unzip -p flexnetls.jar BOOT-INF/classes/logback-continuous.xml |
DAILY_ROLLOVER |
unzip -p flexnetls.jar BOOT-INF/classes/logback-rollover.xml |
DAILY_ROLLOVER_UTC |
unzip -p flexnetls.jar BOOT-INF/classes/logback-rollover.xml |
JSON |
unzip -p flexnetls.jar BOOT-INF/classes/logback.xml |
JSON_ROLLOVER |
unzip -p flexnetls.jar BOOT-INF/classes/logback-rollover-json.xml |
Note:The "_UTC" variants share a configuration file with their local time counterpart, as the difference is expressed in a "logging.timestamp" system property.