How about this:
|
| # initialise root logger with level INFO and call it
| log4j.rootLogger=INFO, stdout
|
| #set your application to use the BLAH appender
| log4j.logger.org.myapp=INFO, BLAH
|
| #configure the Console appender
| log4j.appender.stdout=org.apache.log4j.ConsoleAppender
| log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
| log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
|
|
| # add a Appender to the logger BLAH
| log4j.appender.BLAH=org.apache.log4j.RollingFileAppender
| # set the layout
| log4j.appender.BLAH.layout=org.apache.log4j.PatternLayout
| log4j.appender.BLAH.layout.ConversionPattern=%d{dd-MMM-yyyy HH:mm:ss:SSS}:
%m%n
| log4j.appender.BLAH.File=c:/testing.log
|
| log4j.appender.BLAH.MaxFileSize=10000KB
| # Keep one backup file
| log4j.appender.BLAH.MaxBackupIndex=10
Note that i have used log4j.logger.org.myapp, replace org.myapp with whatever
is the package hierarchy in your application.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065541#4065541
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065541
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user