-
Notifications
You must be signed in to change notification settings - Fork 36
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
Syslog handler doesn't work with metalog #17
Comments
Still an issue with 1.3.1.0. |
[pid 26413] connect(4, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = -1 EPROTOTYPE (Protocol wrong type for socket) |
The problematic code is at https://github.com/haskell-hvr/hslogger/blob/master/src/System/Log/Handler/Syslog.hs#L185 |
Okay, nvm: after patching up opening it fails the same way, gotta investigate more. |
metalog doesn't like the syntax of messages sent by hslogger, not sure why: i don't understand how it relates to the Syslog Protocol RFC, since seems like neither logger(1) nor hslogger emit compliant messages, but metalog is satisfied by the former's. |
I use metalog http://metalog.sourceforge.net/ on my development machines so I don't have to fiddle with logrotate all the time. I noticed that the following doesn't log anything when using metalog:
If however I stop metalog and start syslog-ng, everything works as expected.
The text was updated successfully, but these errors were encountered: