Log Lenya with Chainsaw v2

Chainsaw is a powerful GUI-based Log viewer. It's a companion application to Log4j and seems to have replaced LogFactor5. Pros are: * mature application, opensource, clean GUI, easy to install (web start) * allows you to easily view the logs of a specific component of your webapp

See also CocoonLog4J and Chainsaw homepage

Getting Chainsaw v2

Web start

Installing Chainsaw locally

Configuring Lenya (using SocketAppender)

<init-param>
  <param-name>logger-class</param-name>
<param-value>org.apache.avalon.excalibur.logger.Log4JLoggerManager</param-value>
</init-param>

<init-param>
  <param-name>log4j-config</param-name>
  <param-value>/WEB-INF/log4j.xconf</param-value>
</init-param>

<appender name="COCOON_DEFAULT"
class="org.apache.log4j.net.SocketAppender">
   <param name="RemoteHost" value="localhost" />
   <param name="Port" value="4445" />
</appender>

<root>
  <priority value ="debug" />
  <appender-ref ref="COCOON_DEFAULT" />
</root>

Using Chainsaw

Other Ressources:

HowToLoggingWithChainsaw (last edited 2009-09-20 23:27:20 by localhost)