Feature #2480

[patch] mod_accesslog: allow custom loglevel

Added by arved over 1 year ago. Updated about 1 year ago.

Status:FixedStart date:2013-03-11
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:mod_accesslog
Target version:1.4.33
Missing in 1.5.x:No

Description

if accesslog.use-syslog is enabled, lighty logs to syslog with the loglevel daemon.info.

I needed to log to a different level, so that the accesslog doesn't clobber the more important info log messages.

The following patch allows specifying a loglevel for the accesslog

for example:

accesslog.use-syslog = "enable"
accesslog.loglevel = 7

would log to daemon.debug

patch-loglevel (2.59 KB) arved, 2013-03-11 16:09

Associated revisions

Revision 2899
Added by stbuehler about 1 year ago

[mod_accesslog] add accesslog.syslog-level option (fixes #2480)

From: Stefan Bühler <>

History

#1 Updated by stbuehler over 1 year ago

  • Target version set to 1.4.33

Small bug in the buffer_is_equal_string call: compares with "accesslog.use-syslog", should compare with "accesslog.loglevel"

#2 Updated by stbuehler about 1 year ago

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

Applied in changeset r2899.

Also available in: Atom