log4japache-chainsaw

How do I use "Load Remote Log4J File" functionality of Chainsaw v2?


I'm trying to set up the Chainsaw viewer. I'm not really getting how it's supposed to work.

This is my XML file in the java project to be logged(i.e the one I want to watch in Chainsaw v2):

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration >
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true">

<plugin name="XMLSocketReceiver" class="org.apache.log4j.net.XMLSocketReceiver">
    <param name="decoder" value="org.apache.log4j.xml.UtilLoggingXMLDecoder"/>
    <param name="Port" value="4000"/>
    <param name="threshold" value="ALL"/>
</plugin>

<root>
  <priority value="debug"/>
</root>
</log4j:configuration>

Here's a screenshot of the Chainsaw option menu:

enter image description here


Solution

  • A couple of things:

    If you have additional questions, feel free to send them here or to the log4j users mailing list, available here: http://logging.apache.org/log4j/1.2/mail-lists.html