Jetty's log mechanism is very flexible and configurable. It is designed
to allow passing messages into another log system. For example when
used with JBoss, Jetty sends it's messages to the JBoss log mechanism.
The key to this is the LogSink class, which receives log messages and
does something with them. A Jetty Log can have multiple LogSinks.
The standard implementation is WriterLogSink which just writes to
a java.io.Writer stream (stderr, or file etc.).
It is simple to write and configure your own LogSink that will send
the log messages to another log system. Have a look and yell if you
need help.
cheers
"Halas, Miroslav" wrote:
> I have question about logging. We have an application which works on top of
> Jetty and Jonas. Jetty and Jonas provides their own logging facilities and
> our application (guess what ;-) implements its own logger class as well. We
> would like to have all these tree systems logs their messages into single
> file. Is there any way, how can I setup Jonas and Jetty to log their
> messages to a file which is shared with some other system (so that multiple
> entities can write to a file) or is there a way, how can I setup Jonas and
> Jetty to use our logger facility (or the other way around) so that we take
> care of synchronization? Thanks in advance,
--
Greg Wilkins<[EMAIL PROTECTED]> GB Ph/Fax: +44(0)7092 063462
Mort Bay Consulting Australia and UK. http://www.mortbay.com
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".