logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject RE: JDK8 Problem
Date Sat, 09 May 2015 02:25:29 GMT
AFAIK it should work the same On java 7 and 8. You should publish your whole test including
configuration so we can try to reproduce. 

-------- Original message --------
From: Markward Schubert <markward.schubert@gmail.com> 
Date: 05/08/2015  02:52  (GMT-08:00) 
To: log4j-user@logging.apache.org 
Subject: JDK8 Problem 

Dear Group,

I have a problem with the JDK Loggin Adapter and JDK 8.0.45.

In a tiny testprogram I open an HttpURLConnection and download a file.
In order to do some testing, I managed to configure the Adapter as
described here: http://logging.apache.org/log4j/2.x/log4j-jul/index.html
and had a result as expecte.

Specifically I pass the
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager word to
the run command of the jar.

The problem is, that this only worked with some older 7 JDK (7.0.40) I
When I then moved to a more recent JDK, the JRE Logging does not get
through to my logfile.
In the latter case only the logging from my own code appears in the file.
Not the logging of HttpURLConnection.

Is there some special precondition for using the JDK Logging Adapter with a
JDK 8.x?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message