Steve:


I've just added your code to the avalon/logging package as a dynamic plugin. Basically this means that if your running James in Merlin all you need to do to use the syslog target is declare the target. For example (under Merlin 3.3 a.k.a. CVS HEAD) your kernel.xml file would contain something like the following:

<kernel>
<!-- other stuff -->
<logging>
<targets>
<!-- add a syslog target -->
<target id="syslog"
artifact="avalon-logging/avalon-logkit-syslog#1.0-SNAPSHOT">
<address hostname="localhost" port="514" facility="USER"/>
<format type="extended">
%7.7{priority} %23.23{time:yyyy-MM-dd HH:mm:ss:SSS} [%25.25{category}] : %{message}\n%{throwable}
</format>
</target>
</targets>
<categories priority="info" target="syslog"/>
</logging>
</kernel>


The above definition will trigger the automatic downloading of the syslog target factory jar file into a local repository, the instantiation and registration of the factory, and the instantiation of a target instance bound to the name "syslog" using the configuration described above.

I've tested this to the point of loading the target but I can't test the actual logging execution. If you have a moment you could checkout the avalon/logging package and run maven. This will execute the build and run a testcase. To switch in the syslog you just need to update the categories element in the avalon/logging/test/conf/logging.xml file.

I'm interested in hearing about result.

Cheers, Stephen.


Steve Short wrote:
Noel,,

I have sent the files in twice to the user list and once to the server
list but the email is not appearing.  There was a single .jar attachment
and I suspect the email is being rejected or ignored by the mailing list
mail server.

I've attached them to this email as a .tar file.

Steve



-----Original Message-----
From: Noel J. Bergman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 1:10 PM
To: James Users List
Subject: RE: James logs via syslog or Log4J



Steve,


I would like to configure James 2.1.3 to log via syslog.

support for log4j was not fully implemented

I ended up writing SyslogTarget and SyslogTargetFactory classes.

Would you please re-submit to server-dev, along with a sample configuration?
:-) And should those be provided to the Avalon folks?


--- Noel


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




------------------------------------------------------------------------


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


--

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/merlin/distributions/latest    |
|------------------------------------------------|

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



Reply via email to