Learn about increasing logging for Railgun.
Increase Logging for Railgun
When troubleshooting or testing the Railgun Listener, it may be necessary to raise the level of verbosity to capture more log data for debugging.
In order to increase logging, the
railgun.conf should be set to 5 in order for all events within the Listener instance to be captured during troubleshooting.
/var/log/syslog. When the
log.level set to 5 in
railgun.conf, no further action is needed to have very verbose logs appear in syslog.
By default, CentOS and RHEL omit many logs from /messages. A few extra steps are needed to achieve the same level of verbosity as Debian/Ubuntu:
- Editing /etc/rsyslog.conf so that the line that reads:
*.info;mail.none;authpriv.none;cron.none /var/log/messagesis updated to be:
*.* /var/log/messagesCommenting out the default line and add this on a new line below it. Another option is to create a new log file.
- Restarting rsyslog and Railgun services. This may need to be done with sudo or as root:
service rsyslog restart service railgun restartIf Railgun or memcached fails over/crashes, logs can be found under