@@ -121,7 +121,7 @@ protected void UnpackTo(Unpacker unpacker, IList<object> array, long arrayLength
121
121
}
122
122
}
123
123
124
- public void UnpackTo ( Unpacker unpacker , IDictionary < string , object > collection )
124
+ public new void UnpackTo ( Unpacker unpacker , IDictionary < string , object > collection )
125
125
{
126
126
long mapLength ;
127
127
if ( ! unpacker . ReadMapLength ( out mapLength ) )
@@ -143,7 +143,7 @@ protected override IDictionary<string, object> UnpackFromCore(Unpacker unpacker)
143
143
return retval ;
144
144
}
145
145
146
- public void UnpackTo ( Unpacker unpacker , object collection )
146
+ public new void UnpackTo ( Unpacker unpacker , object collection )
147
147
{
148
148
var dictionary = collection as IDictionary < string , object > ;
149
149
if ( dictionary == null )
@@ -246,6 +246,7 @@ protected void EnsureConnected()
246
246
247
247
private void ConnectClient ( )
248
248
{
249
+ NLog . Common . InternalLogger . Debug ( "Fluentd Connecting to {0}:{1}" , this . Host , this . Port ) ;
249
250
this . client . Connect ( this . Host , this . Port ) ;
250
251
this . stream = this . client . GetStream ( ) ;
251
252
this . emitter = new FluentdEmitter ( this . stream ) ;
@@ -309,7 +310,7 @@ protected override void Write(LogEventInfo logEvent)
309
310
}
310
311
record . Add ( "stacktrace" , transcodedFrames ) ;
311
312
}
312
- if ( this . IncludeAllProperties && logEvent . Properties . Count > 0 )
313
+ if ( this . IncludeAllProperties && logEvent . HasProperties )
313
314
{
314
315
foreach ( var property in logEvent . Properties )
315
316
{
@@ -344,7 +345,7 @@ protected override void Write(LogEventInfo logEvent)
344
345
345
346
private static object SerializePropertyValue ( string propertyKey , object propertyValue )
346
347
{
347
- if ( propertyValue == null || Convert . GetTypeCode ( propertyValue ) != TypeCode . Object || propertyValue is decimal )
348
+ if ( propertyValue == null || Convert . GetTypeCode ( propertyValue ) != TypeCode . Object )
348
349
{
349
350
return propertyValue ; // immutable
350
351
}
0 commit comments