logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashant Saraf" <psa...@cctc.com>
Subject Updating Wrong File
Date Tue, 10 Apr 2007 05:53:24 GMT
Hi all I am new to Log4j.

                  I had an issue. I am using Weblogic 8.1, I had two
application both had their log4j File. Now what is happing is
applicationA  is running properly with log4j. When I hit ApplicationB it
also works proper, Now when I hit applicationA it show me logged in
ApplicationB 

 

ApplicationA log4j properties file 

 

# Set root logger level to DEBUG and its only appender to A1.

log4j.rootLogger=WARN,A1, F1

 

log4j.category.org.apache.struts=WARN

log4j.category.org.apache.commons.logging=WARN

log4j.category. APPA =DEBUG

# A1 is set to be a ConsoleAppender.

log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.

log4j.appender.A1.layout=org.apache.log4j.PatternLayout

#log4j.appender.A1.layout.ConversionPattern=%5p [%t] - %m%n

log4j.appender.A1.layout.ConversionPattern= APPA >%5p [%d{HH:mm:ss}] -
%m%n

# F1 is set to be a FileAppender.

log4j.appender.F1=org.apache.log4j.RollingFileAppender

log4j.appender.F1.file=c:/logs/APPA.log

log4j.appender.F1.MaxFileSize=10000KB

log4j.appender.F1.MaxBackupIndex=5

# F1 uses PatternLayout.

log4j.appender.F1.layout=org.apache.log4j.PatternLayout

#log4j.appender.F1.layout.ConversionPattern=%5p [%t] - %m%n

log4j.appender.F1.layout.ConversionPattern=%5p [%d{HH:mm:ss}] - %m%n

 

ApplicationB log4j properties file 

# ***** Set root logger level to ERROR and its two appenders to stdout
and R.

log4j.rootLogger=debug, R

 

# ***** stdout is set to be a ConsoleAppender.

log4j.appender.stdout=org.apache.log4j.ConsoleAppender

# ***** stdout uses PatternLayout.

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# ***** Pattern to output the caller's file name and line number.

log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

 

log4j.appender.stdout=org.apache.log4j.ConsoleAppender

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

 

# ***** R is set to be a RollingFileAppender.

log4j.appender.R=org.apache.log4j.RollingFileAppender

log4j.appender.R.File=c:/logs/APPB.log

# ***** Max file size is set to 10000KB

log4j.appender.R.MaxFileSize=10000KB

# ***** Keep one backup file

log4j.appender.R.MaxBackupIndex=1

# ***** R uses PatternLayout.

log4j.appender.R.layout=org.apache.log4j.PatternLayout

log4j.appender.R.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss}] %p -
%m%n

 

# Set Struts/Commons log level

log4j.logger.org.apache.struts=WARN

log4j.logger.org.apache.commons=WARN

Thanks and Regards
Prashant Saraf

---------------------------------------------------------------------
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