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

Support for RFC 5424-style packets and extended runes in syslog tag via AddAllowedRunes() function #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chrissnell
Copy link

This PR adds two new features to the package:

  • Support for RFC 5424-style packets
  • Support for runes within the syslog tag that would otherwise be RFC non-compliant. These runes can be specified with the AddAllowedRunes() function, which takes a string of runes that shall be allowed:
    s := syslog.NewServer()
    s.AddAllowedRunes("-._")  \\ Allows dashes, periods, and underscores in the syslog tag
    s.AddHandler(newHandler())

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

Successfully merging this pull request may close these issues.

2 participants