Thank you for your replies.
I've ended up doing the following for my PHP and Drupal logs:
Uncommented error_log = /var/log/php/php_errors.log in /etc/php.ini
# mkdir /var/log/php
# chown -R apache.apache /var/log/php
Appended following line to /etc/syslog.conf
local6.* /var/log/php/drupal.log
centos-boun...@centos.org wrote:
Hello,
the man syslog.conf explains how to filter syslog messages
But how could I redirect messages by a program name, like
drupal or php? I would like them to go under /var/log/drupal
This 1-liner script needs fired off at system boot.
tail --follow=name
Hello,
the man syslog.conf explains how to filter syslog messages
by facility (auth, authpriv, cron, daemon, kern, ... ) or
by priority (debug, info, notice, warning, ...).
But how could I redirect messages by a program name, like
drupal or php? For example I have in /var/log/messages:
Mar 20
On 20.3.2011 14:55, Alexander Farber wrote:
the man syslog.conf explains how to filter syslog messages
by facility (auth, authpriv, cron, daemon, kern, ... ) or
by priority (debug, info, notice, warning, ...).
But how could I redirect messages by a program name, like
drupal or php? For
:00 AM
To: centos@centos.org
Subject: Re: [CentOS] syslog.conf - how to redirect messages by a program name?
On 20.3.2011 14:55, Alexander Farber wrote:
the man syslog.conf explains how to filter syslog messages
by facility (auth, authpriv, cron, daemon, kern, ... ) or
by priority (debug, info
On Sun, Mar 20, 2011 at 10:18 AM, Damian Tommasino
dtommas...@tradecard.com wrote:
rsyslog can do this as well and has a great filtering feature that is
available. rsyslog will (should) be the default logging daemon in CentOS 6
(as it is for RHEL6).
And if you've got a tweaked, older
6 matches
Mail list logo