-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
At https://github.com/mcavage/node-bunyan-syslog/blob/master/lib/sys.js#L155, SyslogStream:write stringifies r, to be appended to the header as the "message" part of the syslog
I realize that bunyan is a JSON logger and that outputting JSON is what's expected of a bunyan log stream, but for our purposes we don't need or want the entire JSON object printed as the message, for three reasons:
- it's redundant. bunyan-syslog already outputs hostname, name, level, and timestamp in the message header.
- none of our other syslog logs are in JSON.
- JSON is not very human-readable, and we can't simply pipe our syslog logs through the bunyan binary.
Is there a way around these issues, other than forking this repo and modifying the aforementioned line? If not, I'd like to request an option to use r.msg as the message instead of r.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels