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


-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to