[prev in list] [next in list] [prev in thread] [next in thread] 

List:       avalon-users
Subject:    Re: Log4J support testing
From:       Peter Severin <pse () infologic ! fr>
Date:       2003-05-30 19:00:50
[Download RAW message or body]

Hi Anton,

You have a configuration file for log4j attached. The format is simple.
You have appenders which define the destination and format of the log
messages and you have categories to which you associate zero or more
appenders and specify a log level. I hope you'll find this example useful.

Regards,
Peter.

Anton Tagunov wrote:
> Hello Peter!
> 
> PS> Hi Anton,
> 
> PS> I will try to test your code as soon as possible. Unfortunately at this 
> PS> moment I am fighting other problems in fortress. I hope I won't regret 
> PS> my choice.
> 
> Ok, a very familiar situation (to be in a fix about time, not
> about fortress :-)
> 
> Maybe you'll just send me one of your log4j conf files?
> 
> The truth is I'm in a fix too, in such a fix, I don't even
> have time to dig a sample conf file from the distribution,
> but if you send me one maybe I'll test that part of code.
> 
> 
> - Anton
> 
> P.S. will try to help you with your other problems if I can.
> Seems I'm quite familiar with fortress guts by now :-)


["superviseur.xlog" (text/plain)]

<log4j:configuration>

    <appender name="A1" class="org.apache.log4j.ConsoleAppender">
        <param name="Append" value="false"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
                value="%-5p %t (%12F:%L) - %m%n"/>
        </layout>
    </appender>

    <appender name="A2" class="org.apache.log4j.FileAppender">
        <param name="File" value="c:/sup.log"/>
        <param name="Append" value="true"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
                value="%d %-5p [%t] %-17c{2} (%13F:%L) %3x - %m%n"/>
        </layout>
    </appender>

    <category name="org.apache">
        <priority value="warn"/>
    </category>
    
    <category name="fr.infologic">
        <priority value="debug"/>
    </category>

    <root>
        <priority value="warn"/>
        <appender-ref ref="A1"/>
        <appender-ref ref="A2"/>
    </root>

</log4j:configuration>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@avalon.apache.org
For additional commands, e-mail: users-help@avalon.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic