Results 1 to 1 of 1
- 08-06-2010, 12:28 PM #1
setup log4j in servlet application
hi
i want to setup a log in the servlet what all necesary things i has to do for the same means the log files are created by fileappender and is done by the log4j.cml file but the new log file is not creating
the log4j.xml file is in the src folder it has the param of
how can i start in log4j please give me the stepsJava Code:<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="APPENDER1" class="org.apache.log4j.DailyRollingFileAppender"> <param name="Threshold" value="DEBUG"/> <param name="Append" value="true"/> <param name="File" value=".\\logs\\sample.log"/> <param name="DatePattern" value="'.'yyyy-MM-dd"/><!-- roll over every day at midnight--> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-8r [%-50c] %-5p - %m%n"/> </layout> </appender>
thanks in advance
Similar Threads
-
Log4j Grouping application logs
By mhanda in forum New To JavaReplies: 0Last Post: 03-09-2010, 12:19 AM -
How to create Setup for java application
By kiki2009 in forum New To JavaReplies: 21Last Post: 11-08-2009, 07:06 PM -
Invoking Servlet from SWT application
By wolve634 in forum SWT / JFaceReplies: 1Last Post: 03-30-2009, 11:35 AM -
log4j property file in my application
By Peter in forum Advanced JavaReplies: 3Last Post: 06-14-2007, 03:12 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks