If you use the most recent code in CVS head, you can set a repository wide
attributes such has the server hostname once and for all when you
configure log4j (using JoranConfigrator). For values depending on the
request, such as request server name, and remote address, these should be
set using
: Database logging: server name
We have not seen any performance problems.
-Sean
> -Original Message-
> From: James Stauffer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 12:01 PM
> To: 'Log4J Users List'
> Subject: RE: Database logging: server na
We have not seen any performance problems.
-Sean
> -Original Message-
> From: James Stauffer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 12:01 PM
> To: 'Log4J Users List'
> Subject: RE: Database logging: server name
>
>
> Is there
: Database logging: server name
In our environment, we store the server hostname in
the MDC.
First, we put the server hostname in a static variable:
static private final String strServerHostname = getServerHostname();
For each HTTP request, we execute this code:
MDC.put(SERVER_HOSTNAME_KEY
In our environment, we store the server hostname in
the MDC.
First, we put the server hostname in a static variable:
static private final String strServerHostname = getServerHostname();
For each HTTP request, we execute this code:
MDC.put(SERVER_HOSTNAME_KEY, strServerHostname);
MDC.put