simple-logging-0.2.0.5: Logging effect to plug into the simple-effects framework

Safe HaskellNone
LanguageHaskell2010

Control.Effects.Logging

Description

Use this module to add logging to your monad. A log is a structured value that can hold information like severity, log message, timestamp, callstack, etc.

Logging is treated like a stream of logs comming from your application and functions that transform the logs take a stream and output a stream. Functions like logInfo push a new log into the stream and functions like setTimestampToNow take a stream of logs and attach extra info onto each log (current time in this case).

Read the documentation of individual functions to get a feel for what you can do.

Documentation