You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by Jesse Weigert <jw...@azaleos.net> on 2005/06/30 19:47:34 UTC

LoggingEvent implements Iserializable, yet isn't serializable

I was trying to implement an appender which will send the LoggingEvent
to a webservice, but I can't get this to work because LoggingEvent is
not really serializable.  When I make a webmethod which accepts a
loggingEvent as a parameter, I receive this message:

[InvalidOperationException: log4net.Core.LoggingEvent cannot be
serialized because it does not have a default public constructor.]
   System.Xml.Serialization.TypeScope.GetTypeDesc(Type type, MemberInfo
source, Boolean directReference) +178
 
System.Xml.Serialization.XmlReflectionImporter.ImportMemberMapping(XmlRe
flectionMember xmlReflectionMember, String ns, XmlReflectionMember[]
xmlReflectionMembers) +34
 
System.Xml.Serialization.XmlReflectionImporter.ImportMembersMapping(XmlR
eflectionMember[] xmlReflectionMembers, String ns, Boolean
hasWrapperElement) +300

Was LoggingEvent supposed to be serializable?

-Jesse