[Haskell-cafe] hslogger and syslog-ng
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Sun Aug 23 14:11:15 EDT 2009
On Aug 23, 2009, at 14:05 , Magnus Therning wrote:
> 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 following:
>>> > :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
>> 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 places.
> What kind of systems to you have under your control?
Various SuSE Linux, Solaris 8/9/10, Mac OS X (should be mostly the
same as FreeBSD at this level).
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090823/a29d3cf2/PGP-0001.bin
More information about the Haskell-Cafe