Skip to content

Logging

loggingConfig

Path Application Name >> loggingConfig

Type object, Mandatory

Usage

Sets the appender type and severity level for the application.

You can use appenders for setting logging location. The severity is for the levels of logging. Below appender types and severity levels can be used.

Appender Types

Name Description
CONSOLE_APPENDER Appender for printing logs only to console.
FILE_APPENDER Appender for uploading the logs to a file, which is on the same directory with the application. Also prints the logs to console.
JOURNAL_APPENDER Appender for uploading the logs only to journald.
SYSLOG_APPENDER Appender for uploading logs to journald with their system time. Also prints the logs to console.

Log Severity

Name Description
"INFO" This level enables the logging for all levels except Debug level.
"DEBUG" This level enables the usage of all logging levels.
"WARN" This is the level for printing only warnings and errors.
"ERROR" This level is only for error messages.

Example

"loggingConfig": {
  "appender": "JOURNAL_APPENDER",
  "severity": "INFO"
},

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the The Siemens Inner Source License - 1.1.