[dev] Logging Horde via Syslog

Adam Tauno Williams awilliam at whitemice.org
Wed Apr 8 16:03:30 UTC 2009


On Wed, 2009-04-08 at 14:56 +0200, Andre Pawlowski wrote:
> Hey guys,
> I'm trying to use syslog for the horde logging. But I have some  
> questions which answer I can't find in the Horde FAQ or wiki.
> When I change the logging from file to Syslog and save everything, my  
> conf.php looks like this:
> $conf['log']['priority'] = PEAR_LOG_NOTICE;
> $conf['log']['ident'] = 'HORDE';
> $conf['log']['params'] = array();
> $conf['log']['name'] = auth;
> $conf['log']['type'] = 'syslog';
> For the entry $conf['log']['name'] the description is:
> "Syslog facility to use Enter a valid PHP expression."
> I dd the line
> HORDE.*                         /var/log/horde.log

You cannot make-up facilities.  Use one of the local1...local7
facilities.  HORDE.* won't match anything.

> to my /etc/syslog.conf and restart the sysklogd.
> Now when I log in to Horde, I can see the entry:
> pr  8 14:48:16 kokyt0s HORDE[9405]: [horde] Login success for sqall  
> [xxx.xxx.xxx.xxx] to Horde [pid 9405 on line 138 of "/horde/login.php"]
> But only under /var/log/syslog. There is no /var/log/horde.log and  
> there is no entry under /var/log/auth.log.

Many version of syslog will not create log files;
touch /var/log/horde.log and make sure the permissions are OK.

> Perhaps I understand something wrong, but I thought with  
> $conf['log']['name'] = auth; in my conf.php syslog will save the  
> entries under the auth "facility".

What level of auth.* are you logging;  perhaps the horde messages are
debug and your just logging auth.info, etc...

> I hope I will see things much clearer when you help me.



More information about the dev mailing list