Re: Request for enhancment in PatternLayout

2003-10-20 Thread Ceki Gülcü
How about creating new PatternConverter classes ? See https://www.qos.ch/logging/PatternLayout.html for details. At 10:41 AM 10/20/2003 -0700, Elias Ross wrote: For the application I am working on, I receive log messages from multiple machines. It would be handy to include a new PatternLayout c

RE: Request for enhancment in PatternLayout

2003-10-20 Thread Sullivan, Sean C - MWT
I store the server's hostname in a Mapped Diagnostic Context org.apache.log4j.MDC.put("server.hostname", getServerHostname()); The PatternLayout can access the server hostname using %X{server.hostname} http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/MDC.html In log4j.xml, I have