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

Safe HaskellNone
LanguageHaskell2010

System.Log.MonadLogger.Syslog

Synopsis

Documentation

runSyslogLoggingT :: LoggingT m a -> m a Source #

Runs a LoggingT action, sending its output to Syslog. Logging will use service name (logger "tag") hslogger, and Syslog facility User. Log lines will have the same format as runStdoutLoggingT, but the LogLevel will be converted to the matching Syslog priority value, and will be included in the logged message.

runCustomSyslogLoggingT Source #

Arguments

:: String

Logger tag.

-> Facility

Syslog facility.

-> LoggingT m a 
-> m a 

Like runSyslogLoggingT, but specifying desired service name -- (logger "tag") and Syslog facility.

data Facility #

Syslog distinguishes various system facilities. Most applications should log in USER.

Constructors

Kernel

kernel messages

User

user-level messages (default unless set otherwise)

Mail

mail system

News

network news subsystem

UUCP

UUCP subsystem

Daemon

system daemons

Auth

security and authorization messages

Cron

clock daemon

LPR

line printer subsystem

Local0

reserved for local use

Local1

reserved for local use

Local2

reserved for local use

Local3

reserved for local use

Local4

reserved for local use

Local5

reserved for local use

Local6

reserved for local use

Local7

reserved for local use

Instances
Bounded Facility 
Instance details

Defined in System.Posix.Syslog.Facility

Enum Facility 
Instance details

Defined in System.Posix.Syslog.Facility

Eq Facility 
Instance details

Defined in System.Posix.Syslog.Facility

Read Facility 
Instance details

Defined in System.Posix.Syslog.Facility

Show Facility 
Instance details

Defined in System.Posix.Syslog.Facility

Generic Facility 
Instance details

Defined in System.Posix.Syslog.Facility

Associated Types

type Rep Facility :: Type -> Type #

Methods

from :: Facility -> Rep Facility x #

to :: Rep Facility x -> Facility #

type Rep Facility 
Instance details

Defined in System.Posix.Syslog.Facility

type Rep Facility = D1 (MetaData "Facility" "System.Posix.Syslog.Facility" "hsyslog-5.0.2-4YPEwpeEGKZ6PP1UUUwS4g" False) ((((C1 (MetaCons "Kernel" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "User" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Mail" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "News" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "UUCP" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Daemon" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Auth" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Cron" PrefixI False) (U1 :: Type -> Type)))) :+: (((C1 (MetaCons "LPR" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Local0" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Local1" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Local2" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "Local3" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Local4" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Local5" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Local6" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Local7" PrefixI False) (U1 :: Type -> Type))))))