You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Douglas Glassman <dg...@uswest.com> on 2001/01/09 21:25:42 UTC

Question on appenders

Is there anyway to get the hostname information of a machine via log4j ?

i.e. I would like to include a layout pattern specifier for this
operation.
I would like to not have to write a custom appender for such an
operation.

Thanks
Doug GLassman


Re: Question on appenders

Posted by Ceki Gulcu <cg...@urbanet.ch>.
At 13:25 09.01.2001 -0700, you wrote:
>Is there anyway to get the hostname information of a machine via log4j ?
>
>i.e. I would like to include a layout pattern specifier for this
>operation.
>I would like to not have to write a custom appender for such an
>operation.
>
>Thanks
>Doug GLassman

Hello Doug,

Paul has a write up on this exact issue. It is included as an attachment. 
Hope it helps. Ceki