extensible-effects-concurrent-0.21.1: Message passing concurrency as extensible-effect

Safe HaskellNone
LanguageHaskell2010

Control.Eff.LogWriter.UnixSocket

Description

This helps to setup logging to standard ouput.

Synopsis

Documentation

withUnixSocketLogWriter Source #

Arguments

:: (Lifted IO e, LogsTo IO e, MonadBaseControl IO (Eff e), HasCallStack) 
=> LogMessageRenderer Text

LogMessage rendering function

-> FilePath

Path to the socket file

-> Eff e b 
-> Eff e b 

Enable logging to a (remote-) host via UnixSocket.

See exampleDevLogSyslogLogging

withUnixSocketLogging Source #

Arguments

:: (HasCallStack, MonadBaseControl IO (Eff e), Lifted IO e) 
=> LogMessageRenderer Text

LogMessage rendering function

-> FilePath

Path to the socket file

-> Text

The default application name to put into the lmAppName field.

-> Facility

The default RFC-5424 facility to put into the lmFacility field.

-> LogPredicate

The inital predicate for log messages, there are some pre-defined in Control.Eff.Log.Message

-> Eff (Logs ': (LogWriterReader IO ': e)) a 
-> Eff e a 

Enable logging to a unix domain socket, with some LogMessage fields preset as in withIoLogging.

See exampleDevLogSyslogLogging