You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Adam Krieg <ak...@marketaxess.com> on 2002/11/13 12:34:36 UTC
BasicConfigurator not printing debug statements
> According to the manual:
> "The invocation of the BasicConfigurator.configure
> <api/org/apache/log4j/BasicConfigurator.html> method creates a rather
> simple log4j setup. This method is hardwired to add to the root category a
> ConsoleAppender printing on the console. The output will be formatted
> using a PatternLayout set to the pattern "%-4r [%t] %-5p %c %x - %m%n
> Note that by default, the root category is assigned to Priority.DEBUG "
>
>
> My Code
>
> BasicConfigurator.configure();
> logger.debug("Starting up App");
> System.out.println("System.out.println(\"starting up
> App\")");
>
> My Console:
> $ java -jar myApp.jar
> System.out.println("starting up App ")
>
> In playing with the code, I see something interesting which may shed some
> light on the problem. If I comment out BasicConfigurator.configure(); I
> don't get any warning message when I run.
>
> Anybody run into similar problems?
>
> Adam
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>