monad-logger-syslog: syslog output for monad-logger

[ library, logging, mit ] [ Propose Tags ]

syslog output for monad-logger


[Skip to Readme]
Versions [faq] 0.1.0.0, 0.1.1.0, 0.1.1.1, 0.1.2.0, 0.1.3.0, 0.1.4.0, 0.1.5.0, 0.1.6.0
Change log ChangeLog.md
Dependencies base (<10), bytestring (>=0.10.8 && <0.11), fast-logger (>=2.4.7), hsyslog (>=4 && <5.1), monad-logger (>=0.3.20 && <0.4), text (>=1.2.2 && <1.3), transformers (>=0.5.2 && <0.6) [details]
License MIT
Author Greg Weber & FP Complete Developers
Maintainer Ernesto Hernández-Novich <haskell@iamemhn.link>
Revised Revision 1 made by MichaelSnoyman at 2020-08-11T07:31:05Z
Category Logging
Home page https://github.com/fpco/monad-logger-syslog
Source repo head: git clone https://github.com/fpco/monad-logger-syslog
Uploaded by iamemhn at 2019-11-25T16:27:16Z
Distributions LTSHaskell:0.1.4.0, NixOS:0.1.6.0, Stackage:0.1.4.0
Downloads 4708 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-11-25 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


Readme for monad-logger-syslog-0.1.6.0

[back to package description]

Monad Logger for Syslog

TravisCI Hackage

Install

cabal install monad-logger-syslog

Usage (example)

Default to syslog user facility with name hslogger

import Control.Monad.Logger ( logDebugN  )
import Control.Monad.Logger.Syslog ( runSyslogLoggingT )

main :: IO ()
main = runSyslogLoggingT (logDebugN "HELLO!")

Log under Local1 facility with name mylogger

import Control.Monad.Logger ( logDebugN  )
import Control.Monad.Logger.Syslog ( runCustomSyslogLoggingT )

main :: IO ()
main = runCustomSyslogLoggingT "mylogger" Local1 (logDebugN "HELLO!")