monad-logger-extras-0.1.0.0: Utilities for composing loggers, plus a few orphan instances.

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Logger.Extras

Description

|

Synopsis

Documentation

runLoggerLoggingT :: LoggingT m a -> Logger -> m a Source #

Run a LoggingT action using the provided Logger

type LogF = Loc -> LogSource -> LogLevel -> LogStr -> IO () Source #

Type synonym for a logging action. See defaultLogStr for the default formatting of this data.

newtype Logger Source #

A composable logging action.

Constructors

Logger 

Fields

Instances
Semigroup Logger Source # 
Instance details

Defined in Control.Monad.Logger.Extras

Monoid Logger Source # 
Instance details

Defined in Control.Monad.Logger.Extras

logToStderr :: Logger Source #

Composable stderr logging action.

logToStdout :: Logger Source #

Composable stdout logging action.

logToNowhere :: Logger Source #

This logger doesn't perform any logging action.

logToSyslog :: String -> Logger Source #

Log messages to a posix system log. The string argument is a tag that can be used to identify log messages produced by this logger. You can, for instance, run journalctl --user -t mytag to see log messages tagged with "mytag".