From: <Oli...@Li...> - 2007-12-12 07:32:46
|
Hi everyone, I'm trying to implement a framwork for my perl scripts using your excellent library log4perl and I'm really happy with it. I have just a short question, to the function appender_thresholds_adjust(). I found, that a threshold offset of 0 has the same effect as a threshold offset of -1. This seems to be an inconcistency for me. I would expect, that an offset of 0 leaves the threshold unchanged. This makes sense, when I want to make some arithmetic with the log level: Standard log level = WARN ($StandardLogLevel = 1;) command line: --verbosity=x ($Verbosity = x;) Levels: Errors: x=0 Warnings: x=1 Info: x=2 Debug: x=3 All: x=4 Perl: Log::Log4perl->appender_thresholds_adjust($StandardLogLevel - $Verbosity); Or is there any special reason, why the function was implemented that way? Regards, Oliver |