Ah, found it.  Its quite simple, I just had to edit my environment.xml so
that the log-targets had formatting attributes:

<category name="helloworld" target="hw-logger" priority="DEBUG" />

<log-target name="hw-logger" location="/logs/hw.log"
    format="blah! %8.8{time: HH:mm:ss} [%8.8{category}] (%{context}):
%{message}\n%{throwable}" />

-----Original Message-----
From: Paul Hammant [mailto:[EMAIL PROTECTED]
Sent: 30 July 2002 00:29
To: Avalon Applications Developers List
Subject: Re: configuration of logger


Nick,

Not sure how to get Phoenix to use it, but there is quite a bit of 
overview at http://jakarta.apache.org/avalon/excalibur/logger/ (hidden 
page).

Class 
http://jakarta.apache.org/avalon/excalibur/logger/api/org/apache/avalon/exca
libur/logger/factory/FileTargetFactory.html 
works in conjunction with 
http://jakarta.apache.org/avalon/excalibur/logger/api/org/apache/avalon/exca
libur/logger/factory/FormatterFactory.html 
somehow to make the Syslog formatter.

- Paul

>Hi,
>
>I'm trying to configure avalon to write my log files in the format of
>syslogs.  I've found the org.apache.log.format.SyslogFormatter which sounds
>like its going to be useful to me.  I've been digging around in the
>configuration files but can't find an example of where this or anything
>similar is used.  Can this be done simply by configuration changes, or do I
>have to write my own DefaultLogManager?
>
>Nick
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>
>  
>




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to