Logging

Console Logging

Where should VerneMQ emit the default console log messages (which are typically at info severity):
1
log.console = off | file | console | both
Copied!
VerneMQ defaults to log the console messages to a file, which can specified by:
1
log.console.file = /path/to/log/file
Copied!
This option defaults to /var/log/vernemq/console.log for Ubuntu, Debian, RHEL and Docker installs.
The default console logging level info could be setting one of the following:
1
log.console.level = debug | info | warning | error
Copied!

Error Logging

VerneMQ log error messages by default. One can change the default behaviour by setting:
1
log.error = on | off
Copied!
VerneMQ defaults to log the error messages to a file, which can specified by:
1
log.error.file = /path/to/log/file
Copied!
This option defaults to /var/log/vernemq/error.log for Ubuntu, Debian, RHEL and Docker installs.

Crash Logging

VerneMQ log crash messages by default. One can change the default behaviour by setting:
1
log.crash = on | off
Copied!
VerneMQ defaults to log the crash messages to a file, which can specified by:
1
log.crash.file = /path/to/log/file
Copied!
This option defaults to /var/log/vernemq/crash.log for Ubuntu, Debian, RHEL and Docker installs.
The maximum sizes in bytes of inidividual messages in the crash log defaults to 64KB but can be specified by:
1
log.crash.maximum_message_size = 64KB
Copied!
VerneMQ rotate crash logs. By default, the crash log file is rotated at midnight or when the size exceeds 10MGB. This behaviour can be changed by setting:
1
## Acceptable values:
2
## - a byte size with units, e.g. 10GB
3
log.crash.size = 10MB
4
5
## For acceptable values see https://github.com/basho/lager/blob/master/README.md#internal-log-rotation
6
log.crash.rotation = $D0
Copied!
The default number of rotated log files is 5 and can be set with the option:
1
log.crash.rotation.keep = 5
Copied!

SysLog

VerneMQ supports logging to SysLog, enable it by setting:
1
log.syslog = on
Copied!
Logging to SysLog is disabled by default.
Last modified 3yr ago