From: Lionel B. <lio...@bo...> - 2005-03-17 12:40:28
|
Michael Storz wrote the following on 17.03.2005 12:40 : >On Wed, 16 Mar 2005, Lionel Bouton wrote: > > > >>Funny logging is mentionned now : >>I'm currently reworking the logging and adding categories in the process >>so as to allow users to choose what they want to log more precisely. >> >> > >Could you describe what the new model of logging looks like? Maybe we'll >have suggestions what to include based on our needs. > > Nothing is carved in stone yet, but the idea is to split logging into categories. I've made a quick pass on the existing log() statements and have identified several preliminary categories: greylisting: decisions based on greylisting algos whitelist: decisions based on whitelists dbaccess: db upgrades, db access errors, martians: things coming from Postfix we aren't expecting, mail: mails sent to the administrator, spam: detected spam attempts perf: time spent in most intensive operations system: forks conf: conf loading/reloading other: ... My current plan is to continue using a default loglevel but to allow overriding it for each of these categories. Instead of "debug", "verbose", "normal", "quiet", ... There will be something like: default_loglevel = 2 loglevel_override = perf:4,mail:0 with 0:silent -> 4:debug Lionel. |