How to Enable Debug Logging on CentOS 6.5

I have been doing a lot of works on machines running CentOS 6.5 lately. The debug logging was not enabled by default. Here is how to enable it.

  1. Use a text editor to edit this file /etc/rsyslog.conf.
  2. Insert this line
    *.debug                                     /var/log/debug
  3. Save the file
  4. Restart the service by running this command
    sudo /sbin/service rsyslog restart

After the rsyslog service has been restarted, you can check this file /var/log/debug for debugging info.

This post may contain affiliated links. When you click on the link and purchase a product, we receive a small commision to keep us running. Thanks.