Re: Print the LoggerContext name

2015-07-21 Thread Clément Guillaume
Yes, I have the log4j-web jar in my classpath, I'm in a servlet 3.0 environment so I don't need any particular config, or did I miss something? On Sun, Jul 19, 2015 at 11:26 AM, Gary Gregory garydgreg...@gmail.com wrote: And you have your web app configured per

Re: FATAL Unable to register shutdown hook because JVM is shutting down.

2015-07-21 Thread Mikael Ståldal
The app do some logging at startup as well, and quite some logging in between. However, it is a short running batch job, and in this case the JVM only runs for 6 seconds in total. See below to get some more context about the timing. The first and last log line are not from Log4j, they are from a

Re: FATAL Unable to register shutdown hook because JVM is shutting down.

2015-07-21 Thread Mikael Ståldal
There is only one JVM process involved as far as I know. I have a script which looks like this: #!/bin/sh date +%F %T,%N Before JVM start java com.magine.maglev.Job -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager date +%F %T,%N After JVM end I tried to make it run longer by