Control.Monad.Log

Introduction

Getting Started

Working with logging-effect

Emitting log messages

Outputting with LoggingT

Adapting and composing logging

MonadLog

logMessage

mapLogMessage

mapLogMessageM

class MonadLog message m

Convenience logging combinators

logDebug

logInfo

logNotice

logWarning

logError

logCritical

logAlert

logEmergency

Message transformers

renderPretty

Timestamps

data WithTimestamp a

timestamp

renderWithTimestamp

Severity

data WithSeverity a

data Severity

renderWithSeverity

Call stacks

data WithCallStack a

withCallStack

renderWithCallStack

LoggingT, a general handler

data LoggingT message m a

runLoggingT

mapLoggingT

LoggingT Handlers

type Handler m message

withFDHandler

Batched handlers

withBatchedHandler

data BatchingOptions

defaultBatchingOptions

Pure logging

data PureLoggingT log m a

runPureLoggingT

Discarding logs

data DiscardLoggingT message m a

Aside: An mtl refresher