Re: logging from multiple instances on same file?

2004-05-20 Thread john . allen





Please remove me from your email list. Thank You


Let me know if I can be of any more Service to You,

John Allen
Air Import Agent
Expeditors International - SFO
Email: [EMAIL PROTECTED]
Ph:   (650) 737-1712
Fax: (650) 737-0933



   

  siva kumar   

  [EMAIL PROTECTED]To:   [EMAIL PROTECTED]
 
  oo.com  cc:   (bcc: John 
Allen/SFO/Expeditors)  
   Subject:  logging from multiple 
instances on same file? 
  05/20/04 11:38 AM

  Please respond to

  Log4J Users 

  List

   

   





Hi

i have welogic server created multiple instances under one domain.
i want to have a centralized logging like messages from all the instances
should be logged in one log file with hostname and instance name.

how can achieve this? the following entries in config file will work or is
there any better way?

 log4j.appender.NormalFileAppender.layout.ConversionPattern=
localhost:server1 %5p %d{MMM dd  HH:mm} (%F:%M():%L) - %m%n

or


log4j.appender.R.layout.ConversionPattern
=[slf5s.start]%d{DATE}[slf5s.DATE]%n

{{{ %p[slf5s.PRIORITY]%n%x[slf5s.NDC]%n%t[slf5s.THREAD]%n

  %c[slf5s.CATEGORY]%n%l[slf5s.LOCATION]%n%m[slf5s.MESSAGE]%n%n

plz advise

thanks
siva




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: logging from multiple instances on same file?

2004-05-20 Thread James Stauffer
You could send the log messages out through a Socket and have a ServerSocket
listen to both servers and consolidate the messages.

James Stauffer


-Original Message-
From: siva kumar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 1:39 PM
To: [EMAIL PROTECTED]
Subject: logging from multiple instances on same file?


Hi 
 
i have welogic server created multiple instances under one domain. i want to
have a centralized logging like messages from all the instances should be
logged in one log file with hostname and instance name.
 
how can achieve this? the following entries in config file will work or is
there any better way?
 
 log4j.appender.NormalFileAppender.layout.ConversionPattern=
localhost:server1 %5p %d{MMM dd  HH:mm} (%F:%M():%L) - %m%n
 
or
 

log4j.appender.R.layout.ConversionPattern=[slf5s.start]%d{DATE}[slf5s.DATE]%
n

{{{ %p[slf5s.PRIORITY]%n%x[slf5s.NDC]%n%t[slf5s.THREAD]%n 

  %c[slf5s.CATEGORY]%n%l[slf5s.LOCATION]%n%m[slf5s.MESSAGE]%n%n 

plz advise
 
thanks
siva
 
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com