You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 21, 2024. It is now read-only.
When syslog is being saved to files, the PRI value is typically removed (I don't know real reason for that though, but it's just my observation). And go-syslog complains that it can't find a PRI value when parsing syslog files. I worked it around by prepending every line with some dummy priority before parsing, but could we add at least an option to support syslog messages without a PRI value?
Also, as of now the Parse method just takes a byte array, there is no option to parse from an io.Reader; it makes prepending messages expensive. Can we make it possible to parse from an io.Reader as well? (It probably warrants for a separate issue, but it's more of a related question for now, so leaving it here)
Thanks!
The text was updated successfully, but these errors were encountered:
@dimonomid thanks for the suggestions. Those sound like great additions. We will consider it for a future release. Would you be willing to help by contributing to the library?
When syslog is being saved to files, the PRI value is typically removed (I don't know real reason for that though, but it's just my observation). And go-syslog complains that it can't find a PRI value when parsing syslog files. I worked it around by prepending every line with some dummy priority before parsing, but could we add at least an option to support syslog messages without a PRI value?
Also, as of now the
Parse
method just takes a byte array, there is no option to parse from anio.Reader
; it makes prepending messages expensive. Can we make it possible to parse from anio.Reader
as well? (It probably warrants for a separate issue, but it's more of a related question for now, so leaving it here)Thanks!
The text was updated successfully, but these errors were encountered: