SyslogAppender for logback access

Hi, I've tried to get SyslogAppender to work for our jetty access log with no success. The access log is configured correct and writes to a file. The syslogappender also works on its own when I log to it from my application log. When I add a syslogappender to logback-access.xml nothing happens. After debugging logback I see that Syslogappender expects an IloggingEvent and not an AccessEvent resulting in a classcast exception. I've unsuccessfully tried to implement my own appender overriding syslogappender. Does anyone have any tips on how to achieve this? Any tip/trick feedback would be appreciated even if it's to confirm this is functionality not implemented and not easily done. Best regards, Henning

Hello Henning, There is no Syslogappender class in logback-access. I guess there was no demand for it so far. Cheers, -- Ceki On 24.01.2011 14:59, Henning Juva wrote:
Hi,
I've tried to get SyslogAppender to work for our jetty access log with no success. The access log is configured correct and writes to a file. The syslogappender also works on its own when I log to it from my application log. When I add a syslogappender to logback-access.xml nothing happens. After debugging logback I see that Syslogappender expects an IloggingEvent and not an AccessEvent resulting in a classcast exception. I've unsuccessfully tried to implement my own appender overriding syslogappender.
Does anyone have any tips on how to achieve this? Any tip/trick feedback would be appreciated even if it's to confirm this is functionality not implemented and not easily done.
Best regards, Henning

Thanks for the clarification. I also see my colleague entered a feature request for this. In the meantime we'll find some other way around this. --Henning On 24 January 2011 16:42, Ceki Gulcu <ceki@qos.ch> wrote:
Hello Henning,
There is no Syslogappender class in logback-access. I guess there was no demand for it so far.
Cheers, -- Ceki
On 24.01.2011 14:59, Henning Juva wrote:
Hi,
I've tried to get SyslogAppender to work for our jetty access log with no success. The access log is configured correct and writes to a file. The syslogappender also works on its own when I log to it from my application log. When I add a syslogappender to logback-access.xml nothing happens. After debugging logback I see that Syslogappender expects an IloggingEvent and not an AccessEvent resulting in a classcast exception. I've unsuccessfully tried to implement my own appender overriding syslogappender.
Does anyone have any tips on how to achieve this? Any tip/trick feedback would be appreciated even if it's to confirm this is functionality not implemented and not easily done.
Best regards, Henning
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
participants (2)
-
Ceki Gulcu
-
Henning Juva