You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by "Ghorpade, Rajendra" <RG...@onebridge.de> on 2002/04/08 14:21:11 UTC

Mismatch of loglevels in ConsoleLogger and Priority class

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.

Raj

Rajendra Ghorpade
   Software Engineer

   OneBridge AG - simplifying voice technologies -
   Friedrich-Ebert-Strasse
   D 51429 Bergisch Gladbach

   Fon:   +49 (0)2204 / 845-118
   Fax:   +49 (0)2204 / 845-101
   Mobil: +49 (0)162/345 0758
   Email: rghorpade@onebridge.de
   Web:   www.onebridge.de

Voice Games - Wählen, hören, spielen und urteilen Sie selbst. Begeben Sie
sich mit uns auf eine kleine Reise und knacken Sie die Schatztruhe der
OneBridge AG. Jetzt anrufen: 0180 / 545 00 74 ( EUR 0.12/Min.)
Voice Games - Dial, play, and hear how it works. Come with us on a short
trip and try to break open the treasure chest of OneBridge AG. Call now:
0180 / 545 00 74 ( EUR 0.12/min.)



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Mismatch of loglevels in ConsoleLogger and Priority class

Posted by Leo Sutic <le...@inspireinfrastructure.com>.

> From: Ghorpade, Rajendra [mailto:RGhorpade@onebridge.de]
>
> 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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>