I am using the MessageLoggingPolicy to send logs to Loggly, however, the syslog "header" section does not appear to be correctly formatted.
(The "structured data" and "message" portions, which I have configured in the policy's <Message> element are correctly sent verbatim.)
This is the header portion which is appearing on the syslog messages:
<14>Fri Sep 26 01:32:23 UTC 2014Info:
This is followed by the string configured in my policy's <Message> element.
Is there any way to change this behaviour? For instance, to set the time format as yyyy-MM-dd'T'hh:mm:ss, set the application name or message ID (per RFC 5424)?
Thanks!
Solved! Go to Solution.
Hi Alp,
I don't believe you can modify the structured data portion of the log..
My recommendation would be to put anything you want formatted in a specific way in the message. You can format your date in JavaScript before logging.
This has the added benefit of protecting you against any format changes or differences if you move to a different logging service provider.
Good luck!
Mike
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |