Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to add the PRI field in front of logging message #8

Open
JrCs opened this issue Aug 16, 2016 · 2 comments
Open

Allow to add the PRI field in front of logging message #8

JrCs opened this issue Aug 16, 2016 · 2 comments

Comments

@JrCs
Copy link
Contributor

JrCs commented Aug 16, 2016

Hi,

actually we can use the extendedoption to prefixes every output syslog line with the facility and priority.
The problem is that it can be difficult and time consuming to parse this fields to convert them to numeric levels.
So can you add an option to prefix every output syslog line with the "standard" PRI field (surround by <> like defined in RFC3164)
Ex:

<13> Jun 15 02:09:33 su [27]: pam_unix(su:session): session opened for user root by (uid=1000)

Thanks

@garywiz
Copy link
Owner

garywiz commented Aug 16, 2016

Ahhh, Indeed I can. Do you think both the human-readable as well as the RFC3164 format are useful? Or should I simply replace the output format of extended? I'll make the change one way or the other though, good point.

@JrCs
Copy link
Contributor Author

JrCs commented Aug 19, 2016

Perhaps the best is to allow to choose the output format of the log.
It can be simple (human-readable like now), extended (human-readable with prefix facility.severity like now with extended set to true) and a standard syslog format RFC5424 (that have the pri field, timestamp with timezone, etc...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants