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

Syslog handler doesn't work with metalog #17

Open
orlitzky opened this issue Dec 26, 2013 · 5 comments
Open

Syslog handler doesn't work with metalog #17

orlitzky opened this issue Dec 26, 2013 · 5 comments

Comments

@orlitzky
Copy link

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:

  Prelude> :set prompt "ghci> "
  ghci> :m +System.Log.Logger
  ghci> :m +System.Log.Handler.Syslog
  ghci> sl <- openlog rootLoggerName [] USER DEBUG
  ghci> updateGlobalLogger rootLoggerName (addHandler sl)
  ghci> errorM rootLoggerName "This won't show up with metalog."

If however I stop metalog and start syslog-ng, everything works as expected.

@l29ah
Copy link

l29ah commented Feb 4, 2024

Still an issue with 1.3.1.0.

@l29ah
Copy link

l29ah commented Feb 4, 2024

[pid 26413] connect(4, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = -1 EPROTOTYPE (Protocol wrong type for socket)

@l29ah
Copy link

l29ah commented Feb 4, 2024

@l29ah
Copy link

l29ah commented Feb 4, 2024

Okay, nvm: after patching up opening it fails the same way, gotta investigate more.

@l29ah
Copy link

l29ah commented Feb 4, 2024

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.

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