Try the following: public static Category CAT = org.apache.log4j.Category.getInstance(Log4jEmailTest.class.getName()); public static void main(String[]
args) for (int
i=0;i<15;i++) As you can see you need to specify a certain file.
Here is an example for the content of you config file #------------------------------------------root category----------------------- # Set root category priority to DEBUG and its appenders to sysout. log4j.rootCategory=DEBUG, sysout, SMTPTest # sysout is set to be a FileAppender which outputs to System.out log4j.appender.sysout=org.apache.log4j.ConsoleAppender # the following line only if all the logging should to System.out as well #log4j.appender.sysout.File=System.out
# sysout also uses PatternLayout. log4j.appender.sysout.layout=org.apache.log4j.PatternLayout log4j.appender.sysout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
|
- configuration problem. Sonia Jose
- Re: configuration problem. Fuerst, Thomas
- Re: configuration problem. suneel v v v
- Re: configuration problem. Sonia Jose