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
supported in Java 9 and beyond due to various bugs.

On 24 February 2017 at 16:58, Christopher <ctubb...@apache.org> wrote:

> 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 <b>App</b> option takes a string value which should be the name of the
> application getting logged. If property was already set (via system
> property), don't set here. @since 1.2.15
> """
>
> Now, I've looked all over the code and I can't figure out what system
> property it is referring to.
>
> Does anybody know? Thanks.
>
> --
> Christopher
>



-- 
Matt Sicker <boa...@gmail.com>

Reply via email to