[Haskell-cafe] hslogger and syslog-ng
magnus at therning.org
Sun Aug 23 14:05:48 EDT 2009
Brandon S. Allbery KF8NH wrote:
>> Oh, though logging to a dgram socket doesn't seem to work either.
>> I added the following line to /etc/syslog-ng.conf:
>> Restarted it and checked that the socket was there. Then I ran the
>> > :m +System.Log.Logger
>> > :m +System.Log.Handler.Syslog
>> > sl <- openlog_local "/dev/dlog" "foo" [PID] USER DEBUG
>> > updateGlobalLogger rootLoggerName (addHandler sl)
>> > warningM "bar" "test"
>> *** Exception: sendTo: protocol error (Protocol wrong type for socket)
> Hm. hslogger uses a hardcoded 0 instead of PF_UNSPEC (not that
> Network.BSD exports PF_*, and it too hardcodes defaultProtocol as 0) but
> a spot check of system under my control suggests it should work most
What kind of systems to you have under your control?
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus＠therning．org Jabber: magnus＠therning．org
http://therning.org/magnus identi.ca|twitter: magthe
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090823/ecd17803/signature.bin
More information about the Haskell-Cafe