Project

General

Profile

Actions

Feature #296

closed

Can't use cronolog with server.errorlog

Added by Anonymous about 19 years ago. Updated over 15 years ago.

Status:
Fixed
Priority:
Low
Category:
core
Target version:
ASK QUESTIONS IN Forums:

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.


Files

lighttpd-1.4.x-piperrorlog.patch (4.64 KB) lighttpd-1.4.x-piperrorlog.patch carenas, 2006-12-17 23:44
lighttpd-piperrorlog.patch (3.58 KB) lighttpd-piperrorlog.patch patch for trunk that adds a new errorlog type "pipe" and implements it carenas, 2006-12-18 02:36
log-cronolog2.diff (2.47 KB) log-cronolog2.diff updated original patch for new version of lighty -- rkitover Anonymous, 2007-11-05 05:20
log-cronolog3.diff (2.45 KB) log-cronolog3.diff updated patch for 1.5 (trunk) rkitover, 2009-01-20 00:09
Actions #1

Updated by Anonymous almost 19 years ago

  • Status changed from New to Assigned

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.).

-- cph

Actions #2

Updated by Anonymous almost 17 years ago

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

Actions #3

Updated by Anonymous over 16 years ago

-- Lfe

Actions #4

Updated by Anonymous about 16 years ago

Any news?

Actions #5

Updated by stbuehler about 16 years ago

  • Target version changed from 1.4.20 to 1.4.21
Actions #6

Updated by akrus about 16 years ago

Bump! Any news?

Actions #8

Updated by icy almost 16 years ago

  • Target version changed from 1.4.21 to 1.4.22
  • Patch available set to No
Actions #9

Updated by stbuehler over 15 years ago

  • Target version changed from 1.4.22 to 1.4.23
Actions #10

Updated by stbuehler over 15 years ago

  • Assignee deleted (stbuehler)
  • Target version changed from 1.4.23 to 1.4.x

I don't see any reason to add this upstream - just use stderr and pipe it yourself.

Actions #11

Updated by stbuehler over 15 years ago

  • Status changed from Assigned to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2466.

Actions #12

Updated by stbuehler over 15 years ago

  • Target version changed from 1.4.x to 1.4.23

I hope our gentoo users are happy now :)

Actions

Also available in: Atom