ChainSaw v2 LogFilePatternReceiver doesn't work

Discussion in 'Java' started by tkonrath, Oct 10, 2005.

  1. tkonrath

    tkonrath Guest

    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
     
    tkonrath, Oct 10, 2005
    #1
    1. Advertising

  2. tkonrath

    scott Guest

    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>

    tkonrath wrote:
    > 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
     
    scott, Oct 10, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. scott
    Replies:
    0
    Views:
    727
    scott
    May 24, 2004
  2. jerry
    Replies:
    5
    Views:
    20,419
    Krzysztof
    Jun 6, 2012
  3. monkey boy via JavaKB.com

    Is there a way to Chainsaw as a service?

    monkey boy via JavaKB.com, Feb 6, 2005, in forum: Java
    Replies:
    0
    Views:
    327
    monkey boy via JavaKB.com
    Feb 6, 2005
  4. iq

    Chainsaw log viewer

    iq, Jun 16, 2005, in forum: Java
    Replies:
    3
    Views:
    717
    Arne Vajhøj
    Sep 19, 2012
  5. karen
    Replies:
    0
    Views:
    589
    karen
    Sep 12, 2006
Loading...

Share This Page