Ticket #296 (assigned enhancement)

Opened 3 years ago

Last modified 45 hours ago

Can't use cronolog with server.errorlog

Reported by: anonymous Owned by: anonymous
Priority: low Milestone: 1.4.20
Component: core Version: 1.4.x-svn
Severity: minor Keywords: cronolog server.errorlog accesslog.filename patch
Cc: Blocked By:
Need User Feedback: no Blocking:

Description

It appears that cronolog can only be used with the accesslog.filename.

When server.errorlog is configured to pipe to cronolog, the following occurs:

Starting lighttpd. 2005-09-28 23:02:22: (log.c.60) opening errorlog '|/usr/local/sbin/cronolog /home/anthony/logs/domain.net-error_log.%Y%m%d' failed: No such file or directory 2005-09-28 23:02:22: (server.c.711) opening errorlog failed, dying

#> lighttpd -v lighttpd-1.4.3 - a light and fast webserver Build-Date: Sep 28 2005 01:27:03

This behavior is not consistent with accesslog.filename and should be either corrected or documented. Apache, for instance, allows one to use cronolog for both sets of logs. That is a more consistent configuration.

Attachments

lighttpd-1.4.x-piperrorlog.patch (4.6 kB) - added by carenas 21 months ago.
lighttpd-piperrorlog.patch (3.6 kB) - added by carenas 21 months ago.
patch for trunk that adds a new errorlog type "pipe" and implements it
log-cronolog2.diff (2.5 kB) - added by rkitover@… 10 months ago.
updated original patch for new version of lighty

Change History

Changed 3 years ago by cph@…

  • owner changed from jan to anonymous
  • status changed from new to assigned
  • version changed from 1.4.3 to 1.4.x-svn

I have written a patch for this (well, blatantly ripped off from mod_accesslog.c):

http://blog.moria.org.uk/downloads/log-cronolog.diff

file, syslog and stderr logging all seem to work still, and I have this working to cronolog okay here. Works independently of whether mod_accesslog is also to cronolog (or equiv.).

Changed 21 months ago by carenas

Changed 21 months ago by carenas

patch for trunk that adds a new errorlog type "pipe" and implements it

Changed 10 months ago by rkitover@…

updated original patch for new version of lighty

Changed 7 months ago by anonymous

patch: **** Only garbage was found in the patch input.

Changed 6 months ago by Lfe

  • keywords patch added
  • pending unset

Changed 3 months ago by stbuehler

  • type changed from defect to enhancement

Changed 45 hours ago by anonymous

Any news?

Add/Change #296 (Can't use cronolog with server.errorlog)

Author



Change Properties
<Author field>
Action
as assigned
 
Note: See TracTickets for help on using tickets.