
Hi, I want to configure log4j for Web Application in which common logging api used i tried to configure... Property Configure code to add appender i think not because we are using Apache common



Hi,
In your program log4j.properties file is missing.
java.io.FileNotFoundException: log4j.properties (The system cannot find the file specified)
Create a new file log4j.properties in src directory and add the following content:
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
log4j.rootLogger=debug, stdout
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.