Logging configuration is the same for any Enterprise Server service. It defines where application logging messages are saved (may use more than one logger type), and the logging level.
Where the DateTime is displayed the timezone will be set based on the server timezone. If you’d like to change this option, run the application including the -Duser.timezone="UTC"
flag from the command line.
Property | Description |
---|---|
logger.types |
One or more comma-separated loggers. Options: StdoutLogger , FileLogger , StackdriverLogger , or SplunkHttpLogger .Example: StdoutLogger , SplunkHttpLogger
|
logger.default.level |
Only messages with logging at this level or above will be displayed. Options are trace , debug , info , warn , and error .Example: info
|
logger.stdout.include.datetime optional |
(for logger.types=StdoutLogger ) Set true to display ISO8601 datetime, false for the log message to contain no date or time. The default value is true .Example: true
|
logger.file.folder |
(for logger.types=FileLogger ) Location for the log file(s).Example: /var/logs
|
logger.file.history.size optional |
(for logger.types=FileLogger ) The number of archive files (days) to keep.Default value: 14 Example: 14
|
logger.file.history.compression optional |
(for logger.types=FileLogger ) Set true to gzip the history files, false to leave as text.Default value: false .Example: true
|
logger.file.include.datetime optional |
(for logger.types=FileLogger ) Set true to display ISO8601 datetime, false for the log message to contain no date or time. Default value: true Example: false
|
logger.stackdriver.credentials.file |
(for logger.types=StackdriverLogger ) The StackDriver credentials file.Example: /credentials.json
|
logger.splunk.url |
(for logger.types=SplunkHttpLogger ) The Splunk server base URL for the HTTP Event Collector.Example: https://splunk-url:8088
|
logger.splunk.token |
(for logger.types=SplunkHttpLogger ) The Splunk HTTP Event Collector enabled token.Example: 327bfa46-...
|
logger.splunk.disable.certificate.validation |
(for logger.types=SplunkHttpLogger ) Disables or enables certificate validation for the Splunk server (if HTTPS). This property is useful for debugging logging itself.Example: false
|