logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armin.Zelt...@t-online.de (Armin Zeltner)
Subject log4j initialization problems
Date Sun, 13 Jan 2002 10:24:06 GMT
Hi

I've the following sequence:
        Category root=Category.getRoot();
        root.addAppender(new ConsoleAppender());
        Category log=Category.getInstance(XYZ.class.getName());
.....
    log.debug("abcdef");

and I get the following error:
log4j:ERROR No appenders could be found for category (XYZ).
log4j:ERROR Please initialize the log4j system properly.


I really the initialization of root or any parent category not sufficient?

THX
Armin





--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message