MIT licensed by Michael Snoyman
This version can be pinned in stack with:monad-logger-0.3.42@sha256:a0439d36e81b16773323db52df45be1d3058d7e14455db82cc2bd0609e1f16f4,1679
Module documentation for 0.3.42
Depends on 19 packages
(full list with versions):
base, 
bytestring, 
conduit, 
conduit-extra, 
exceptions, 
fast-logger, 
lifted-base, 
monad-control, 
monad-loops, 
mtl, 
resourcet, 
stm, 
stm-chans, 
template-haskell, 
text, 
transformers, 
transformers-base, 
transformers-compat, 
unliftio-core Used by 34 packages in 
nightly-2025-10-31(full list with versions):
async-refresh, 
async-refresh-tokens, 
crdt-event-fold, 
esqueleto, 
fsnotify, 
haskoin-node, 
haskoin-store, 
inf-backprop, 
json-rpc, 
keter, 
monad-logger-aeson, 
monad-logger-extras, 
monad-logger-json, 
monad-logger-logstash, 
monad-logger-syslog, 
om-fail, 
om-fork, 
om-logging, 
persistent, 
persistent-mtl, 
persistent-postgresql, 
persistent-sqlite, 
persistent-test, 
persistent-typed-db, 
rio-orphans, 
sandwich, 
sandwich-contexts, 
sandwich-slack, 
sandwich-webdriver, 
sydtest-persistent-sqlite, 
urlpath, 
webdriver, 
yesod, 
yesod-core monad-logger
 
 

A monad transformer approach for logging.
This package provides Template Haskell functions for determining source code locations of messages.
ChangeLog for monad-logger
0.3.42
- Forward compatibility with -Wnoncanonical-monad-instancesbecoming an error
0.3.41
- Add MonadAccuminstances forLoggingTandNoLoggingT
0.3.40
- Relax fast-loggerupper bound from 3.2 to 3.3
- Add Alternativeinstances forLoggingTandNoLoggingT
0.3.39
- Make the previous change backwards compatible with CPP
0.3.38
- Drop old deprecated instances to support transformers 0.6 #39
0.3.37
- Add Semigroup/Monoidinstances toLoggingT,NoLoggingT, andWriterLoggingT
0.3.36
- Export the defaultOutputfunction, useful for defining custom instances ofMonadLogger. #29
0.3.35
- Add Hackage status badge
- Document Loc#26
0.3.34
- Fix build for lts-9 resolver
0.3.33
- Export LogLinetype synonym.
0.3.32
- Compat with unliftio-core0.2
0.3.31
- Re-export fromLogStrto make implementing custom instances more convenient.
#14
0.3.30
- Added MonadFailinstances forLoggingTandNoLoggingT.
0.3.29
- Export mapLoggingT and mapNoLoggingT
0.3.28.5
0.3.28.4
0.3.28.3
- Compat for older GHCs #161
0.3.28.2
- Support for exceptions 0.9 and 0.10 #158
- Drop blaze-builder dependency
0.3.28.1
- Fix support for GHC 7.8 #154
0.3.28
- Added WriterLoggingTfor collecting log lines and help with testing
0.3.27
- Drop backwards compat with older library versions
0.3.26
- Add MonadUnliftIOinstances
0.3.25.1
- Fix some incorrect @sincecomments
0.3.25
- Export all CallStack log functions #143
0.3.24
- Added MonadReaderinstance forNoLoggingT.
0.3.23
- Changed runFileLoggingTbuffering to line buffering.
- Added defaultLogandlogWithoutLocto list of exported functions.
0.3.22
0.3.21
- Reimplemented Functor & Applicative for LoggingT & NoLoggingT #125 #126
0.3.20.2
0.3.20.1
- Fix #106 by correcting the default signature for MonadLoggerIO #108
0.3.20
- Generalize the type of unChanLoggingT#104
0.3.19
- Add CallStack-based functions and Control.Monad.Logger.CallStackmodule
0.3.18
- Added logTHShow and logDebugSH, logInfoSH, etc. Accepts an argument of Show a => ainstead of justText.
0.3.17
0.3.16
- Provide default monadLoggerLog implementation #72
0.3.15
- Expose Loc constructor #70
0.3.14
- Don’t include source location for defaultLoc #69
0.3.13.1
0.3.13
- Re-export LogStr from fast-logger #56
- Added filterLogger
0.3.12
- Use transformers-compat to provide universal ExceptT support #53
0.3.11.1
Add support for monad-control 1.0 #52
0.3.11
Add missing MonadState and MonadWriter instances for NoLoggingT #51
0.3.10.1
Remove unnecessary extra newline in log messages.
0.3.10
Introduce the MonadLoggerIO typeclass.
0.3.9
Add missing MonadError NoLoggingT instance #49
0.3.8
Simplify constraint on MonadLogger (NoLoggingT m) from MonadIO m to Monad m Github issue #48.