Possibly try using the absolute path to your log4j.properties file for
testing, just to be sure.
PropertyConfigurator.configure("/your/root/path/src/logging/log4j.properties");
On Tue, Apr 10, 2012 at 7:00 AM, tommmmmm <[email protected]> wrote:
> I did this in my class:
> PropertyConfigurator.configure("./src/logging/log4j.properties");
>
> And that file is:
> log4j.rootLogger=DEBUG, stdout
> log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> log4j.appender.stdout.layout.ConversionPattern=%5p [%c] %m%n
> log4j.logger.org.apache.http=DEBUG
>
> Yet absolutely no additional output is generated!!!
>
> I also did this:
> logger.debug("some test message");
> and it does show "some test message" so it ultimately proves that
> configuration file WAS lodaed and that it was loaded PROPERLY.
> Yet for some reason the HttpClient doesn't want to sprout any logs at
> all.....
>
> --
> Tomasz P.
>