[JIRA] Created: (LBACCESS-23) Access logging does not work with syslog appender

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

[ http://jira.qos.ch/browse/LBACCESS-23?page=com.atlassian.jira.plugin.system.... ] 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

[ http://jira.qos.ch/browse/LBACCESS-23?page=com.atlassian.jira.plugin.system.... ] Ceki Gulcu updated LBACCESS-23: ------------------------------- Issue Type: New Feature (was: Bug)
Access logging does not work with syslog appender -------------------------------------------------
Key: LBACCESS-23 URL: http://jira.qos.ch/browse/LBACCESS-23 Project: logback-access Issue Type: New Feature 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
participants (2)
-
Ceki Gulcu (JIRA)
-
Stein Inge Morisbak (JIRA)