> From: Ghorpade, Rajendra [mailto:[EMAIL PROTECTED]]
>
> Hi All,
> There is a mismatch between the log levels in
> org.apache.avalon.framework.logger.ConsoleLogger and the
> org.apache.log.Priority class.
> Log levels have values of 0,1,2,3,4,5 in ConsoleLogger and Priority class
> has them set to 5,10,15,20,25.
> So ConsoleLogger will not log to correct log level if receives log level
> from Priority.

Rajendra,

this is not by design, but not a bug either: The logger package abstracts
away
from the logger implementation, and is thus *not* tied to org.apache.log and
need not work with Priority.

Consider ConsoleLogger another logging package in itself, just like Log4J.

I'd like to keep them (ConsoleLogger and LogKit) decoupled. If there is a
reason to tie the levels in ConsoleLogger to LogKit Priority values, then
I'll do the change, but it seems quite anti-abstraction.

Plus, I think ConsoleLogger is growing a bit here and I'd like to keep it
*very* minimal. Basically, if you need priority control - use LogKit.

/LS


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to