Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need help to write tLog4j custom component logging information to a file. By default tLog4J is writing on console. How should I configure, and where should I configure If I want tLog4J to write logging info to a file say " c:/log/myjob.txt ". Help Appreciated.
Thanks,
Madhu
<appender name="DailyFileAppender" class="org.apache.log4j.DailyRollingFileAppender">
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<param name="File" value="c:/log/myjob.txt "/>
<param name="Append" value="true"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p %c{2} - %m%n"/>
</layout>
</appender>