antonsamarsky/log4net.Raven — Issue #1: Property dictionary values are not stored
Author: sumothecat
Created: 2011-10-31 18:40:36+00:00
State: open

Hi there, thanks for this. Raven doesn't serialize unknown types like log4net's PropertiesDictionary, so my custom log properties like request-url are not getting stored. I did a quick fix by changing Log.cs as follows:

// change the property type
Dictionary Properties { get; set; }
...
// change the constructor to do the mapping
this.Properties = logEvent.Properties.GetKeys().ToDictionary(key => key, key => logEvent.Properties[key].ToString());

Thanks!
Pete