Did you tried to change the order of these two lines:
Logger logger = Logger.getLogger("jobManager.UploadManager");
PropertyConfigurator.configure("./src/logging/log4j.properties");
so that you'll have:
PropertyConfigurator.configure("./src/logging/log4j.properties");
Logger logger = Logger.getLogger("jobManager.UploadManager");
On 10 April 2012 20:53, tommmmmm <[email protected]> wrote:
> On 10 April 2012 19:45, Vasile Alin <[email protected]> wrote:
>
>> Try adding the environment variable -Dlog4j.debug=true so that you can
>> see how log4 is configuring itself.
>>
>>
> log4j: Trying to find [log4j.xml] using context classloader
> sun.misc.Launcher$AppClassLoader@2827f394.
> log4j: Trying to find [log4j.xml] using
> sun.misc.Launcher$AppClassLoader@2827f394 class loader.
> log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
> log4j: Trying to find [log4j.properties] using context classloader
> sun.misc.Launcher$AppClassLoader@2827f394.
> log4j: Trying to find [log4j.properties] using
> sun.misc.Launcher$AppClassLoader@2827f394 class loader.
> log4j: Trying to find [log4j.properties] using
> ClassLoader.getSystemResource().
> log4j: Could not find resource: [null].
> log4j: Parsing for [root] with value=[INFO, stdout].
> log4j: Level token is [INFO].
> log4j: Category root set to INFO
> log4j: Parsing appender named "stdout".
> log4j: Parsing layout options for "stdout".
> log4j: Setting property [conversionPattern] to [%5p [%c] %m%n].
> log4j: End of parsing for "stdout".
> log4j: Parsed "stdout" options.
> log4j: Parsing for [org.apache.http.wire] with value=[DEBUG].
> log4j: Level token is [DEBUG].
> log4j: Category org.apache.http.wire set to DEBUG
> log4j: Handling log4j.additivity.org.apache.http.wire=[null]
> log4j: Parsing for [org.apache.http] with value=[DEBUG].
> log4j: Level token is [DEBUG].
> log4j: Category org.apache.http set to DEBUG
> log4j: Handling log4j.additivity.org.apache.http=[null]
> log4j: Parsing for [jobManager] with value=[DEBUG].
> log4j: Level token is [DEBUG].
> log4j: Category jobManager set to DEBUG
> log4j: Handling log4j.additivity.jobManager=[null]
> log4j: Finished configuring.
>
> A complete.... jibberish. *reading it again and again till something useful
> pops into my head*
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]