You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by ian <ia...@tiktaktoe.co.uk> on 2004/11/22 16:38:59 UTC
Custom Appender
Hi
I need to send in XML data which I then break up and store in a database - any ideas as to the best way to do this?
I'm looking to create a custom appender, similar to the current ADONet appender by extending the AppenderSkeleton class, and implementing the Append method.
The trouble is, I'm a little confused when it comes to the LoggingEvent class - am I right in thinking that I'll have to create my own LoggingEvent class to define the data I want to pass in? If so, then I guess I'll also have to override CallAppender in the Logger class to create my new loggingevent object.
Am I on the right track with this line of thought?
Thanks in advance
Ian