[logback-user] DBAppender issue

Stephen Schaeffer Stephen.Schaeffer at theice.com
Mon Jun 6 22:50:43 CEST 2011


Hi all,

I'm attempting to use the DBAppender, with the MySQL dialect.

I am unable to actually put any records into my DB however. It seems that the culprit is that in DBAppenderBase:append, there is a call to subAppend, which is implemented either in Access, in which case it takes an AccessEvent as it's first argument, or in Classic, in which case it takes an ILoggingEvent as it's first argument. What it is actually passing is a LoggingEvent (no initial I) object, and so I'm getting ClassCastExceptions, and nothing in my DB.

I'm assuming that someone out there has this working, and I'm just wondering what I'm doing wrong.

Thanks for any help.


Stephen Schaeffer


________________________________
This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange, Inc. (ICE), its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110606/63917a59/attachment.html>


More information about the Logback-user mailing list