/lib/apache-log4j/site/apidocs/org/apache/log4j/chainsaw/package-summary.html
https://bitbucket.org/arkban/somersault · HTML · 260 lines · 198 code · 46 blank · 16 comment · 0 complexity · 484c868fd2ec6f27fa1e03e22beec1c5 MD5 · raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!--NewPage-->
- <HTML>
- <HEAD>
- <!-- Generated by javadoc (build 1.6.0_16) -->
- <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <TITLE>
- org.apache.log4j.chainsaw (Apache Log4j 1.2.16 API)
- </TITLE>
- <META NAME="date" CONTENT="2010-03-30">
- <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
- <SCRIPT type="text/javascript">
- function windowTitle()
- {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="org.apache.log4j.chainsaw (Apache Log4j 1.2.16 API)";
- }
- }
- </SCRIPT>
- <NOSCRIPT>
- </NOSCRIPT>
- </HEAD>
- <BODY BGCOLOR="white" onload="windowTitle();">
- <HR>
- <!-- ========= START OF TOP NAVBAR ======= -->
- <A NAME="navbar_top"><!-- --></A>
- <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_top_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../org/apache/log4j/package-summary.html"><B>PREV PACKAGE</B></A>
- <A HREF="../../../../org/apache/log4j/config/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../index.html?org/apache/log4j/chainsaw/package-summary.html" target="_top"><B>FRAMES</B></A>
- <A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>
- <SCRIPT type="text/javascript">
- <!--
- if(window==top) {
- document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
- }
- //-->
- </SCRIPT>
- <NOSCRIPT>
- <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_top"></A>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <HR>
- <H2>
- Package org.apache.log4j.chainsaw
- </H2>
- Chainsaw is a GUI log viewer and filter for the log4j
- package.
- <P>
- <B>See:</B>
- <BR>
- <A HREF="#package_description"><B>Description</B></A>
- <P>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Class Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD WIDTH="15%"><B><A HREF="../../../../org/apache/log4j/chainsaw/Main.html" title="class in org.apache.log4j.chainsaw">Main</A></B></TD>
- <TD>The main application.</TD>
- </TR>
- </TABLE>
-
- <P>
- <A NAME="package_description"><!-- --></A><H2>
- Package org.apache.log4j.chainsaw Description
- </H2>
- <P>
- <P>Chainsaw is a GUI log viewer and filter for the log4j
- package. By default it listens for <a
- href="../spi/LoggingEvent.html">LoggingEvent</A> objects sent using
- the <A href="../net/SocketAppender.html">SocketAppender</A> and
- displays them in a table. The events can be filtered based on:</P>
- <UL>
- <LI>Level </li>
- <LI>Thread name</li>
- <LI>Logger</li>
- <LI>Message</li>
- <LI>NDC</LI>
- </UL>
- <P>All the details for each event can be displayed by selecting
- the event in the table.</P>
- <P>Chainsaw also supports loading a events logged to a file using
- the <A href="../xml/XMLLayout.html">XMLLayout</A> format. This
- is great for analysing log files, and means you do not need to
- keep Chainsaw running continously. It is easy to add support
- for loading events from other sources like JDBC.</P>
- <P>A picture is worth a thousand words: </P>
- <P align=center><A
- href="doc-files/screen_01.png"><IMG
- height="50%" alt="Screen shot of chainsaw"
- src="doc-files/screen_01.png"
- width="50%"></A>.</P>
- <P>Finally, why is it called chainsaw?
- Because it cuts your log (file) down to size. :-)
- </P>
- <H2>Requirements</H2>
- <P>Chainsaw is based on the Swing API which requires JDK 1.2 or later.</P>
- <H2>Running chainsaw</H2>
- <H3>Setup</H3>
- <P>You need to include the <code>log4j.jar</code> in the classpath.
- <H3>Usage</H3>
- <P>The command line usage is:</P>
- <PRE> java -D<property>=<value> org.apache.log4j.chainsaw.Main </PRE>
- <P>The default behaviour of chainsaw can be changed by setting system properties
- using the <CODE>-D<property>=<value></CODE> arguments to java. The
- following table describes what properties can be set:</P>
- <TABLE cellSpacing=0 cellPadding=2 border=1>
- <TR>
- <TD vAlign=top><B>Property</B></TD>
- <TD vAlign=top><B>Description</B></TD></TR>
- <TR>
- <TD vAlign=top>chainsaw.port</TD>
- <TD vAlign=top>Indicates which port to listen for connections on. Defaults
- to <SPAN class=default>"4445"</SPAN>.
- </TD>
- </TR>
- </TBODY>
- </TABLE>
- <H2>Configuring Log4J</H2>
- <P>You will need to configure log4j to send logging events to
- Chainsaw. Here is a sample <CODE>log4j.properties</CODE> file
- for sending logging events to Chainsaw.</P>
- <PRE>
- log4j.rootLogger=DEBUG, CHAINSAW_CLIENT
- log4j.appender.CHAINSAW_CLIENT=org.apache.log4j.net.SocketAppender
- log4j.appender.CHAINSAW_CLIENT.RemoteHost=localhost
- log4j.appender.CHAINSAW_CLIENT.Port=4445
- log4j.appender.CHAINSAW_CLIENT.LocationInfo=true
- </PRE>
- <P>
- <P>
- <DL>
- </DL>
- <HR>
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <A NAME="navbar_bottom"><!-- --></A>
- <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_bottom_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../org/apache/log4j/package-summary.html"><B>PREV PACKAGE</B></A>
- <A HREF="../../../../org/apache/log4j/config/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../../index.html?org/apache/log4j/chainsaw/package-summary.html" target="_top"><B>FRAMES</B></A>
- <A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>
- <SCRIPT type="text/javascript">
- <!--
- if(window==top) {
- document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
- }
- //-->
- </SCRIPT>
- <NOSCRIPT>
- <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_bottom"></A>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- <HR>
- Copyright © 1999-2010 <a href="http://www.apache.org">Apache Software Foundation</a>. All Rights Reserved.
- </BODY>
- </HTML>