jjchiw / gelf4net

GELF log4net Appender - graylog2
MIT License
63 stars 59 forks source link

where are params and their defaults documented #79

Open jasonrberk opened 2 years ago

jasonrberk commented 2 years ago

what is the default value for SendTimeStampAsString? My new Graylog instances is complaining

GELF message (received from ) has invalid "timestamp": 1661540192.05392 (type: STRING)

where are the the params documented?

jjchiw commented 2 years ago

Hi

The default value is true

https://github.com/jjchiw/gelf4net/blob/master/src/Gelf4Net.Core/Layout/GelfLayout.cs#L22

Here is how the transformation it's done https://github.com/jjchiw/gelf4net/blob/master/src/Gelf4Net.Core/GelfMessage.cs#L70