-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add more capabilities for severity and priority #26
Comments
Sure is, it's RFC 3164 in section 4.1.1, "PRI part." You'll see the facilities and severities listed with names and IDs and how to calculating the resulting PRI. I recommend retaining the same facility for all messages and only changing the severity. The challenge is deciding what messages are more critical severity. If event severity is exposed from Node and Winston, I'd make it 1-to-1 (or many-to-1 if it has lots of severities) with that. If it's not exposed, a static value like exists today may be the best that the adaptor can do. |
Winston supports log levels, i.e. |
Excerpt:
So do we still want to use a hardcoded facility ( |
Yes, though the current hardcoded All of these values have one major problem: they're set once by the framework developer, not by the app developer or ops staff, even though something that is critical in one environment is debug in another. Papertrail uses that as a design consideration and puts relatively little faith in these. They're usable as search attributes (for example, |
It wouldn't be hard to tell the transport what facility to use at transport creation time. |
This appears to be resolved as part of #29 |
Using the newer RFC isn't a problem at all (and is preferable) for Papertrail. |
I haven't reviewed the library in detail to ensure that it is compliant, but assuming it is, everything should be great. |
I (probably not obviously) tested it against Papertrail, and was able to search on severity successfully. But, I didn't do any research beyond that before I published. I assumed (When it worked) that it was the same RFC. |
Figure out how to not hardcode
<25>
as part of our message to Papertrail. I presume there is a specification for this, perhaps as part of syslog. cc @eric for more infoThe text was updated successfully, but these errors were encountered: