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

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