16 messages in org.apache.logging.log4j-userRe: How to always log the host name?
FromSent OnAttachments
Hans SchwaebliJul 4, 2007 6:55 am 
James StaufferJul 5, 2007 7:10 am 
Hans SchwaebliJul 11, 2007 2:20 am 
James StaufferJul 11, 2007 7:52 am 
Hans SchwaebliJul 11, 2007 8:12 am 
James StaufferJul 11, 2007 8:36 am 
Hans SchwaebliJul 11, 2007 12:30 pm 
Scott DeboyJul 11, 2007 1:06 pm 
James StaufferJul 11, 2007 7:31 pm 
Hans SchwaebliJul 12, 2007 4:42 am 
Scott DeboyJul 12, 2007 11:01 am 
Hans SchwaebliJul 13, 2007 3:14 am.java
David LloydJul 15, 2007 9:35 pm 
James StaufferJul 16, 2007 5:24 am 
ben shortJul 25, 2007 9:26 am 
ben shortJul 25, 2007 9:32 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: How to always log the host name?Actions...
From:ben short (be@benshort.co.uk)
Date:Jul 25, 2007 9:26:11 am
List:org.apache.logging.log4j-user

James,

Could you elaborate about the MDC value please. What is it, how do i set it?

Regards

Ben

On 7/5/07, James Stauffer <stau@gmail.com> wrote:

I had added the hostname as an MDC value at application startup to achieve that.

On 7/4/07, Hans Schwaebli <hans@yahoo.com> wrote:

How can I configure the log4j logging to add the hostname information into the
logging output?

Most naturally would be to find a conversion character for the hostname in the
PatternLayout. But there is none.