Skip to content

Configuration - Logging

The CSE supports logging to the screen and to a file.

By default, logging to the screen is enabled and logging to a file is disabled. If logging to a file is enabled, the log files are rotated when they reach a certain size or number of files.

General Settings

Section: [logging]

These are the general logging settings.

Setting Description Default
count Number of files for log rotation. 10
enableBindingsLogging Enable logging of low-level HTTP & MQTT client events. False
enableFileLogging Enable logging to file. false
enableScreenLogging Enable logging to the screen. true
enableUTCTimezone Enable UTC timezone for screen and file logging. If disabled then the local time is used. False
filter List of component names to exclude from logging. werkzeug,markdown_it,asyncio
level Loglevel. Allowed values: debug, info, warning, error, off.
See also command line argument –log-level.
debug
maxLogMessageLength Maximum length of a log message. Longer messages will be truncated. A value of 0 means no truncation. 1000 characters
path Pathname for log files. ${basic.config:baseDirectory}/logs
queueSize Number of log entries that can be added to the asynchronous queue before blocking. A queue size of 0 means disabling the queue. 5000 entries
size Size per log file. 100.000 bytes
stackTraceOnError Print a stack trace when logging an 'error' level message. True