Safe Haskell | None |
---|
Module provides syslog logger for simple-log
yourFunction :: MonadLog m => m () yourFunction = scope "your" $ log Trace "Hello" run :: IO () run = do l <- newLog (fileCfg "log.cfg" 60) [syslog "name"] withLog l yourFunction
- data SyslogMessage = SyslogMessage {}
- syslogMsg :: Converter SyslogMessage
- toSyslog :: String -> [Option] -> Facility -> Consumer SyslogMessage
- toSyslog_ :: String -> Consumer SyslogMessage
- syslog :: String -> [Option] -> Facility -> Logger
- syslog_ :: String -> Logger
- data Option
- data Facility
Documentation
data SyslogMessage Source
data Option
Options for the syslog service. Set with withSyslog
.
data Facility
Syslog distinguishes various system facilities. Most
applications should log in USER
.
KERN | kernel messages |
USER | user-level messages (default unless set otherwise) |
mail system | |
DAEMON | system daemons |
AUTH | security/authorization messages |
SYSLOG | messages generated internally by syslogd |
LPR | line printer subsystem |
NEWS | network news subsystem |
UUCP | UUCP subsystem |
CRON | clock daemon |
AUTHPRIV | security/authorization messages (effectively equals |
FTP | ftp daemon (effectively equals |
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 |