Hi Morgan, Josef:
First thanks for answering, i´ll try to answer your questions as best as
possible:
1. Each web service has it´s own log4j.properties
2. Yes it has unique appender
3. Could you please explain me what´s additivity?
4. Yes here you have two example
log1.properties
log4j.rootLogger=ERROR, fileLoggin
# Appender fichero
log4j.appender.fileLoggin=org.apache.log4j.RollingFileAppender
log4j.appender.fileLoggin.layout=org.apache.log4j.PatternLayout
log4j.appender.fileLoggin.layout.ConversionPattern= [%d{dd MMM yyyy HH:mm:ss}]
: %m : %l %n
#log4j.appender.fileLoggin.File=D:/logs/ovc_ws/ovc_ws-total.log
#log4j.appender.fileLoggin.File=/opt/hpws/tomcat_iberdrola/logs/ovc_ws/ovc_ws-total.log
log4j.appender.fileLoggin.File=/tomcat/tomcat/logs/ovc_ws/ovc_ws-total.log
log4j.appender.fileLoggin.MaxFileSize=5120KB
log4j.appender.fileLoggin.MaxBackupIndex=5
log4j.appender.fileLoggin.Append=true
log2.properties
log4j.rootLogger=ERROR, fileLogginSC
# Appender fichero
log4j.appender.fileLogginSC=org.apache.log4j.RollingFileAppender
log4j.appender.fileLogginSC.layout=org.apache.log4j.PatternLayout
log4j.appender.fileLogginSC.layout.ConversionPattern= [%d{dd MMM yyyy
HH:mm:ss}] : %m : %l %n
log4j.appender.fileLogginSC.File=C:/logs/solvencia_center/solvencia_center-total.log
#log4j.appender.fileLogginSC.File=/tomcat/tomcat/logs/solvencia_center/solvencia_center-total.log
#log4j.appender.fileLogginSC.File=/opt/hpws/tomcat_iberdrola/logs/solvencia_center/solvencia_center-total.log
#log4j.appender.fileLogginSC.File=/opt/hpws/apache-tomcat-6.0.35/logs/solvencia_center/solvencia_center-total.log
log4j.appender.fileLogginSC.MaxFileSize=5120KB
log4j.appender.fileLogginSC.MaxBackupIndex=5
log4j.appender.fileLogginSC.Append=true
Thanks in advance for your help
Kind regards
Subject: AW: Ws Axis2 several logs goes to one log
Date: Mon, 21 Jan 2013 09:52:05 +0100
From: [email protected]
To: [email protected]
Hi, Morgan, Oscar1. has each web service / class its own logger defined
i.e. in log4j.properties2. has each logger at least one appender defined,
unique for that logger3. is for each logger the additivity set to false4.
see example in appenderJosef Von: Morgan Humes
[mailto:[email protected]]
Gesendet: Freitag, 18. Januar 2013 13:43
An: [email protected]
Betreff: Re: Ws Axis2 several logs goes to one log Are you using the same
logging category for all three services? Morgan Oscar Rugama
<[email protected]> wrote:
Hi,
I´ve deployed three web Services on my Axis2 container and something
stranged it´s happening, i thinki it´s not critial at all, but at least it
bother us.
As i said, we have deployed three web services nad each webservice has
its own log4j with its own log4.properties, what it happens it´´s than when
axis2 starts, all the logs all of these three web services goes to only log.
I´ll explain with example
ie: Ws1 has log1
Ws2 has log2
Ws3 has log3
If i deploy ws in this way, first Ws1, Sencond Ws2 and third Ws3 , all the
logs will go to log3
If i undeploy Ws2 and deploy again Ws2 what it happens it´s that all logs go
to log2.
Every time i redeploy a Ws all the logs go to the log of the Ws i´ve deployed
Are there any way to have three logs working separately? Each Ws with eahc log
Thanks
Regards,
Oscar
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]