Bug with log4j2 2.8 and JAX-WS (sun-jaxws.xml)?

2017-02-24 Thread agharta
Hi all, I have a strange result with log4j2 and JAX-WS based web service (loading sun-jaxws.xml file at application startup) If the file sun-jaxws.xml is present in WEB-INF folder the *loggerContext* does *not* start in right way. If i move sun-jaxws.xml file *away* from WEB-INF folder (or

SocketAppender application name

2017-02-24 Thread Christopher
I'm trying to figure out what system property affects the SocketAppender's application name. I'm still using Log4j 1.2. Specifically, the Javadoc for SocketAppender#setApplication(String) says: """ The App option takes a string value which should be the name of the application getting logged. If

Re: SocketAppender application name

2017-02-24 Thread Matt Sicker
Looking at the code, it's adding a log event property named "application" if you set it. Digging into LoggingEvent, it appears that properties are a synonym for the MDC. So, MDC.put("application", "some-name") would do it. Related, I'd recommend upgrading to Log4j 2.x as 1.x is EOL and is not sup