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 :-)

<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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to