[logback-dev] [JIRA] Commented: (LBACCESS-23) Access logging does not work with syslog appender
Ceki Gulcu (JIRA)
noreply-jira at qos.ch
Mon Jan 24 19:29:51 CET 2011
[ http://jira.qos.ch/browse/LBACCESS-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11939#action_11939 ]
Ceki Gulcu commented on LBACCESS-23:
------------------------------------
SyslogAppender is only implemented in logback-classic. There is no SyslogAppender implementation in logback-access. In other words, you cannot use SyslogAppender with logback-access.
> Access logging does not work with syslog appender
> -------------------------------------------------
>
> Key: LBACCESS-23
> URL: http://jira.qos.ch/browse/LBACCESS-23
> Project: logback-access
> Issue Type: Bug
> Reporter: Stein Inge Morisbak
> Assignee: Logback dev list
>
> The ch.qos.logback.access.spi.AccessEvent does not implement ch.qos.logback.classic.spi.ILoggingEvent, so if you try to log access log to syslog you get a ClassCastException during the append(E eventObject) of class SyslogAppenderBase which SyslogAppender inherits from. The actual ClassCastException happens when calling Converter.write(buf, event) in the writeLoopOnConverters(E event) method of class PatternLayoutBase<E> which uses the convert(ILoggingEvent event) method of the SyslogStartConverter which you can see expects an ILoggingEvent.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev
mailing list