logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geert Mergan" <...@europeaninvestor.com>
Subject custom priorities
Date Wed, 04 Apr 2001 15:41:25 GMT
I can't get custom priorities to work (see below + attachments)...
Well they do work but not in the way they're supposed to.
Oh yes, I also tried using the DOMConfigurator, doesn't work
either. I figure there must be something wrong with my own
extensions of the log4j framework.

Can anybody figure out what's going on?

If you don't feel like figuring out my code, I would also
appreciate if you send me a working example (including
configuration file = very important)

By preference working example with priorities lower than DEBUG...

Geert <- puzzled

Given following java code: (standard categories)

Category one = Category.getInstance( "com.one.Test" );
Category two = Category.getInstance( "com.two.Test" );

one.error("one error");
one.fatal("one fatal");
two.error("two error");
two.fatal("two fatal");

results into the desired output (only one.error() does not get logged)

If I change to: (use my own factory)


EicCategory one = EicCategory.getInstance( "com.one.Test" );
EicCategory two = EicCategory.getInstance( "com.two.Test" );

then one.error() is logged but it shouldn't be logged, should it?

I have following configuration file:

log4j.rootCategory=FATAL, STDOUT
log4j.appender.STDOUT.layout.ConversionPattern=%-9p # %d ### (%-20c{1}) %m%n

View raw message