On 6/29/07, Bryan K. Walton <bryankwalton@...> wrote:
> I'm using Squirrelmail 1.4.10a on a mail server running Solaris 8
> (sparc platform). I'd like to use the squirrel_logger plugin to
> log to syslog, rather than to a file. However, I can only get the plugin
> to work when I'm logging to a file. There is an option for logging to the
> system (which I assume means syslog). In the config.php, I see the
> $sl_syslog_priority = LOG_INFO;
> But I don't see anyting in the config.php for specifying the syslog
> facility. What facility is squirrel_logger attempting to log to?
Yes, you are right, it uses syslog(). See:
If you want to specify a facility, you'll need to patch the code:
*** functions.php~ 2007-02-09 11:28:56.000000000 -0500
--- functions.php 2007-02-09 11:28:56.000000000 -0500
*** 470,475 ****
--- 470,476 ----
+ openlog("squirrelmail", LOG_NDELAY | LOG_PID, LOG_MAIL);
For info on openlog, see:
> Regardless, when I uncomment the system array fields under the
> $sl_logs variable so that squirrel_logger starts logging to syslog,
> none of my syslog logs are getting logged to. Is there something else
> I need to do to get this to work in Solaris 8?
You tell me. :-) Increase PHP error reporting verbosity and make
sure there are no errors or warnings, otherwise, you'll have to find
out what your syslog is doing with the messages.
> BTW, if I change the config.php so that it logs to the
> squirrelmail_access_log, it logs perfectly.