89fd516d8e
representation from the numeric (for logging purposes). Add new logging plugin, logging/adaptive, which logs at different levels depending on whether the message was accepted/rejected. * lib/Qpsmtpd/Constants.pm use hashes for storing return_codes and log_levels export accessor methods to retrieve the text representations * lib/Qpsmtpd.pm Rename log_level() to trace_level() so as to not conflict with the same name in Qpsmtpd::Constants. Call return_code() to display the text form when logging * plugins/logging/adaptive Better documentation Support named parameters and prefix Call return_code() to display the text form when logging * plugins/logging/warn Include POD * README.logging First pass at documenting the logging plugin API * config.sample/loglevel New numbering scheme to map directly to syslog levels git-svn-id: https://svn.perl.org/qpsmtpd/trunk@401 958fd67b-6ff1-0310-b445-bb7760255be9
11 lines
151 B
Plaintext
11 lines
151 B
Plaintext
# Log levels
|
|
# LOGDEBUG = 7
|
|
# LOGINFO = 6
|
|
# LOGNOTICE = 5
|
|
# LOGWARN = 4
|
|
# LOGERROR = 3
|
|
# LOGCRIT = 2
|
|
# LOGALERT = 1
|
|
# LOGEMERG = 0
|
|
4
|