try using %d{ISO8601} instead of just %d
if this doesn't work, can you post a few lines of logs that do get
written to the 'test1.log' file?
Paul
On 21/06/2007, at 3:10 AM, akshay kumar wrote:
Hi there,
1)Is there any way that I can save the different Log-panel tab
create when I receive logs from remote machine?
Right now what happens is when I close the Chanisaw all log-panel
tab and so all logs within that get erased, which is not suitable
for my application.
Please let me know how can I do that?
2) In an alternate way to save the logs I am using rolling file
appender within the chainsaw receiver config.
But the problem in that the log file test1.log doesnt have any
timestamp information or anything else except message.
below is my config.
Please let me know what I did wrong in conversion pattern layout?
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">
<plugin name="SocketReceiver"
class="org.apache.log4j.net.SocketReceiver">
<param name="Port" value="4445"/>
</plugin>
<appender name="RollingFile"
class="org.apache.log4j.RollingFileAppender">
<param name="File" value="C:\\test1.log"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="1000KB"/>
<param name="maxBackupIndex" value="5"/>
<layout class="org.apache.log4j.PatternLayout" conversionPattern="%
d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
</appender>
<root>
<level value="debug"/>
<appender-ref ref="RollingFile"/>
</root>
</log4j:configuration>
thanks in advance.
---------------------------------
Ready for the edge of your seat? Check out tonight's top picks on
Yahoo! TV.
Paul Smith
Core Engineering Manager
Aconex
The easy way to save time and money on your project
696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200 Fax: +61 3 9240 0299
Email: [EMAIL PROTECTED] www.aconex.com
This email and any attachments are intended solely for the addressee.
The contents may be privileged, confidential and/or subject to
copyright or other applicable law. No confidentiality or privilege is
lost by an erroneous transmission. If you have received this e-mail
in error, please let us know by reply e-mail and delete or destroy
this mail and all copies. If you are not the intended recipient of
this message you must not disseminate, copy or take any action in
reliance on it. The sender takes no responsibility for the effect of
this message upon the recipient's computer system.