[Opensource] Appenders Appenders Everywhere.....

larry hamel expresso at codeguild.com
Wed Feb 19 14:16:42 PST 2003


in expressoConfig.xml:

        <logDirectory>%web-app%../../logs</logDirectory>

(perhaps Mike's method with catalina.home is better?  anyway, this ../../ works for me)

in expressoLogging.xml:

    <appender name="expressoLog" class="org.apache.log4j.DailyRollingFileAppender">
        <param name="File" value="%LogDir%/expresso.log"/>
        <param name="DatePattern" value="'.'yyyy-MM-dd"/>
        <param name="Append" value="true"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d %-5p [%t] %C{2} (%l) - %m\n"/>
            <!-- <param name="ConversionPattern"
            value="%d %-5p %C{2} (%l) - %m\n"/> -->
        </layout>
    </appender>


At 09:19 AM 2/19/2003, you wrote:
>oh?  Care to elaborate how to do this?  I'm very interested in
>implementing something like this right now!
>
>Thanks,
>Ben
>
>-----Original Message-----
>From: opensource-admin at jcorporate.com
>[mailto:opensource-admin at jcorporate.com] On Behalf Of Michael Rimov
>Sent: Tuesday, February 18, 2003 11:19 PM
>To: opensource at jcorporate.com
>Subject: Re: [Opensource] Appenders Appenders Everywhere.....
>
>
>At 03:58 PM 2/18/2003 -0800, you wrote:
>>I like the console appender, but I think that we can live without it. 
>>if
>>our documentation is clear, it seems reasonable to offer only a log
>file, 
>>especially if the management console of the future makes this very
>clear.
>>
>>BTW, in my applications, I typically changed the expresso defaults in
>>order to put the log file in the tomcat "logs" directory, and use a 
>>rotating-file appender.
>
>And that's now particularly useful because I learned you can set the
>file 
>name to:
>                         ${catalina.home}/logs
>
>And create a generic configuration for any tomcat installation.  Works
>slick!
>
>                                                 -Mike
>
>
>
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/
>
>_______________________________________________
>Opensource mailing list
>Opensource at jcorporate.com
>http://mail.jcorporate.com/mailman/listinfo/opensource
>Archives: http://mail.jcorporate.com/pipermail/opensource/




More information about the Opensource mailing list