2) Install & configure the Syslog module
3) Configure rsyslog to Log to a Separate File
mkdir /var/log/cmlm sudo vi /etc/rsyslog.d/drupal.conf Add following to /etc/rsyslog.d/drupal.conf
# drupal logingif ($programname == 'drupal') and ($syslogseverity <= '6') and ($msg contains 'localhost.drupal7') then /var/log/cmlm/drupal.log$IncludeConfig /etc/rsyslog.d/*.conf
local0.* /var/log/cmlm/drupal.log(if local0 is the level that you configured Syslog to use in Step 1)
5) Restart rsyslog
sudo service rsyslog restart
No comments:
Post a Comment