logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ben short" <...@benshort.co.uk>
Subject Re: How to always log the host name?
Date Wed, 25 Jul 2007 16:26:34 GMT
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 <stauffer.james@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_schwaebli@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.
> >
> >
> > ---------------------------------
> > Building a website is a piece of cake.
> > Yahoo! Small Business gives you all the tools to get online.
>
>
> --
> James Stauffer        http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message