Hi Marco,


WriterAppender can only be configured programmatically.

At 06:18 PM 3/4/2004 +0100, you wrote:
I want to use the WriterAppender to send the log output to a Writer in my Application. But I am having difficulties configuring it.
I tried it with the following:


log4j.appender.A_writer=org.apache.log4j.WriterAppender
log4j.appender.A_writer.layout=org.apache.log4j.PatternLayout
log4j.appender.A_writer.Writer=de.devlogix.netz.TestWriter

But I get the message from log4j:

log4j:WARN Failed to set property [writer] to value "de.devlogix.netz.TestWriter".

What can be wrong here? The class de.devlogix.netz.TestWriter exists and I even created an object of in on runtime.
I have to say that I am not very used to configuring log4j, so I may be doing something totally wrong here. I would be pleased if someone can point me into the right direction.


BTW: How do I know what option an appender has? The option Writer to the WriterAppender was found by just trying...

Marco

-- Ceki G�lc�

For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp




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



Reply via email to