@@ -121,7 +121,7 @@ protected void UnpackTo(Unpacker unpacker, IList<object> array, long arrayLength
121121 }
122122 }
123123
124- public void UnpackTo ( Unpacker unpacker , IDictionary < string , object > collection )
124+ public new void UnpackTo ( Unpacker unpacker , IDictionary < string , object > collection )
125125 {
126126 long mapLength ;
127127 if ( ! unpacker . ReadMapLength ( out mapLength ) )
@@ -143,7 +143,7 @@ protected override IDictionary<string, object> UnpackFromCore(Unpacker unpacker)
143143 return retval ;
144144 }
145145
146- public void UnpackTo ( Unpacker unpacker , object collection )
146+ public new void UnpackTo ( Unpacker unpacker , object collection )
147147 {
148148 var dictionary = collection as IDictionary < string , object > ;
149149 if ( dictionary == null )
@@ -246,6 +246,7 @@ protected void EnsureConnected()
246246
247247 private void ConnectClient ( )
248248 {
249+ NLog . Common . InternalLogger . Debug ( "Fluentd Connecting to {0}:{1}" , this . Host , this . Port ) ;
249250 this . client . Connect ( this . Host , this . Port ) ;
250251 this . stream = this . client . GetStream ( ) ;
251252 this . emitter = new FluentdEmitter ( this . stream ) ;
@@ -309,7 +310,7 @@ protected override void Write(LogEventInfo logEvent)
309310 }
310311 record . Add ( "stacktrace" , transcodedFrames ) ;
311312 }
312- if ( this . IncludeAllProperties && logEvent . Properties . Count > 0 )
313+ if ( this . IncludeAllProperties && logEvent . HasProperties )
313314 {
314315 foreach ( var property in logEvent . Properties )
315316 {
@@ -344,7 +345,7 @@ protected override void Write(LogEventInfo logEvent)
344345
345346 private static object SerializePropertyValue ( string propertyKey , object propertyValue )
346347 {
347- if ( propertyValue == null || Convert . GetTypeCode ( propertyValue ) != TypeCode . Object || propertyValue is decimal )
348+ if ( propertyValue == null || Convert . GetTypeCode ( propertyValue ) != TypeCode . Object )
348349 {
349350 return propertyValue ; // immutable
350351 }
0 commit comments