ChainSaw v2 LogFilePatternReceiver doesn't work

T

tkonrath

Hello ..

I just have downloaded the latest Version of ChanSaw from the homepage
and want to analyze our log file. But it simple dosen't work. I already
googled a little bit but wihout any successful hin.

my config file:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration >
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">
<plugin name="LogFileReceiver"
class="org.apache.log4j.varia.LogFilePatternReceiver">
<param name="fileURL" value="file:///D:/temp/logs/ipas/root.log"/>
<param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/>
<param name="logFormat" value="TIMESTAMP LEVEL CLASS * -
MESSAGE"/>
<param name="name" value="ipasRoot"/>
<param name="tailing" value="false"/>

</plugin>
<root>
<level value="debug"/>
</root>
</log4j:configuration>

Some lines out of my root.log file:
2005-10-10 18:25:13,656 DEBUG net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - syncGetConnection: Handing out connection. ID:
13353987 - Active Connections handed out: 1
2005-10-10 18:25:13,656 DEBUG net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - syncGetConnection: <<< syncGetConnection
finished !!!
2005-10-10 18:25:13,656 WARN net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - getConnection: Needed 0 ms for aquiring
connection ID:13353987 / 1555 - available: 1 - unavailable: 1
2005-10-10 18:25:13,656 WARN net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - getConnection: Caller was:
2) line 120 in DBUtil.java [ipas.utils.DBUtil.getConnection()]
3) line 68 in LoginUtil.java
[com.unycom.scan2ipas.LoginUtil.getLoginParameters()]
4) line 384 in ImportClient.java
[com.unycom.scan2ipas.ImportClient.logon()]
5) line 97 in ImportClient.java
[com.unycom.scan2ipas.ImportClient.importDirctories()]
6) line 663 in ImportClient.java
[com.unycom.scan2ipas.ImportClient$ImportClientWorker.run()]
!! Exception 7
2005-10-10 18:25:13,656 DEBUG net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - getConnection: <<< getConnection finished!
2005-10-10 18:25:13,656 DEBUG net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - closeConnection: --> closeConnection called !!!


Could it be that Chainsaw is not able to handle logging output with
linebreaks (as you can see I have)?

Thanks for any hints.

cu,
Tom
 
S

scott

I was able to get it to work using your sample events (it also
successfully loaded the multi-line entries)...use of * may be causing
your problem...try this config instead:

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">

<plugin name="fileReceiver"
class="org.apache.log4j.varia.LogFilePatternReceiver">
<param name="fileURL" value="file:///C:/somelog.txt"/>
<param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/>
<param name="logFormat" value="TIMESTAMP LEVEL CLASS - PROP(USER) -
MESSAGE"/>
<param name="name" value="testLog"/>
<param name="tailing" value="true"/>
</plugin>

<root>
<level value="debug"/>
</root>
</log4j:configuration>
Hello ..

I just have downloaded the latest Version of ChanSaw from the homepage
and want to analyze our log file. But it simple dosen't work. I already
googled a little bit but wihout any successful hin.

my config file:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration >
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">
<plugin name="LogFileReceiver"
class="org.apache.log4j.varia.LogFilePatternReceiver">
<param name="fileURL" value="file:///D:/temp/logs/ipas/root.log"/>
<param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/>
<param name="logFormat" value="TIMESTAMP LEVEL CLASS * -
MESSAGE"/>
<param name="name" value="ipasRoot"/>
<param name="tailing" value="false"/>

</plugin>
<root>
<level value="debug"/>
</root>
</log4j:configuration>

Some lines out of my root.log file:
2005-10-10 18:25:13,656 DEBUG net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - syncGetConnection: Handing out connection. ID:
13353987 - Active Connections handed out: 1
2005-10-10 18:25:13,656 DEBUG net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - syncGetConnection: <<< syncGetConnection
finished !!!
2005-10-10 18:25:13,656 WARN net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - getConnection: Needed 0 ms for aquiring
connection ID:13353987 / 1555 - available: 1 - unavailable: 1
2005-10-10 18:25:13,656 WARN net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - getConnection: Caller was:
2) line 120 in DBUtil.java [ipas.utils.DBUtil.getConnection()]
3) line 68 in LoginUtil.java
[com.unycom.scan2ipas.LoginUtil.getLoginParameters()]
4) line 384 in ImportClient.java
[com.unycom.scan2ipas.ImportClient.logon()]
5) line 97 in ImportClient.java
[com.unycom.scan2ipas.ImportClient.importDirctories()]
6) line 663 in ImportClient.java
[com.unycom.scan2ipas.ImportClient$ImportClientWorker.run()]
!! Exception 7
2005-10-10 18:25:13,656 DEBUG net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - getConnection: <<< getConnection finished!
2005-10-10 18:25:13,656 DEBUG net.unyj.db.pool.StandardConnectionPool -
User: ImportClient - closeConnection: --> closeConnection called !!!


Could it be that Chainsaw is not able to handle logging output with
linebreaks (as you can see I have)?

Thanks for any hints.

cu,
Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top