Project

General

Profile

Feature #2480

closed

[patch] mod_accesslog: allow custom loglevel

Added by arved over 7 years ago. Updated about 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_accesslog
Target version:
ASK QUESTIONS IN Forums:

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


Files

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

Updated by stbuehler over 7 years 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 7 years ago

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

Applied in changeset r2899.

Also available in: Atom