logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave" <w...@comcast.net>
Subject Re: Chainsaw help
Date Sun, 01 May 2005 22:50:19 GMT
The following is my config file
File appender and console appender both work fine.
Socket appender doesn't log anything other then DEBUG and INFO ??

Thanks
Dave

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!--  
*************************************************************************************
        *  This xml document is used to define ACMS Log4J Configuration 
*
        **************************************************************************************

 -->
<log4j:configuration>

        <!--  
*********************************************************************************
                * This appender simply outputs log messages to the console 
*
                *  %d - DateTime 
*
                *  %t - Thread 
*
                *  %C - Class 
*
                *  %m - Message 
*
                *  %n - New Line 
*
                **********************************************************************************

 -->
        <appender name="ERROUT" class="org.apache.log4j.ConsoleAppender">
                <param name="Target" value="System.Err" />
                <param name="Threshold" value="WARN" />

                <layout class="org.apache.log4j.PatternLayout">
                        <param name="ConversionPattern" value="%p - 
%m%n%l%C" />
                </layout>
        </appender>

        <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
                <param name="Target" value="System.Out" />
                <param name="Threshold" value="DEBUG" />

                <layout class="org.apache.log4j.PatternLayout">
                        <param name="ConversionPattern" value="%p - %m%n" />
                </layout>

                <filter class="org.apache.log4j.varia.LevelRangeFilter">
                        <param name="LevelMin" value="DEBUG" />
                        <param name="LevelMax" value="ERROR" />
                        <param name="AcceptOnMatch" value="true" />
                </filter>
        </appender>


        <appender name="A2" class="org.apache.log4j.FileAppender">
                <param name="File" value="c:/test.log" />
                <layout class="org.apache.log4j.PatternLayout">
                        <param name="ConversionPattern" value="%p - %m%n" />
                </layout>
        </appender>

        <appender name="CHAINSAW_CLIENT" 
class="org.apache.log4j.net.SocketAppender">
                <param name="RemoteHost" value="localhost" />
                <param name="Port" value="4445" />
                <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%p - %m%n" />
                </layout>
        </appender>

        <root>
                <priority value="DEBUG" />
                <appender-ref ref="ERROUT" />
                <appender-ref ref="STDOUT" />
                <appender-ref ref="CHAINSAW_CLIENT" />
                <appender-ref ref="A2" />
        </root>
</log4j:configuration> 




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message