MIT licensed by Rick Owens
This version can be pinned in stack with:om-logging-1.1.0.12@sha256:ae6163dd5f1fc87016ec84cf0de10cb44fe03db96caba44e1a6ca91da33c851d,1323
Module documentation for 1.1.0.12
om-logging
This package provides various combinators for composing loggers for use
with the monad-logger
package.
It also provides an opinion about what a good log message looks like.
For instance, the opinionated “standard” log format is defined using
the other combinators:
{- |
Log to the indicated destination, applying the "standard" filters
and formats.
-}
withStandardFormat
:: LogLevel {- ^ The minimum log level that will be logged. -}
-> (Loc -> LogSource -> LogLevel -> LogStr -> IO ()) {- ^ The base logger. -}
-> Loc
-> LogSource
-> LogLevel
-> LogStr
-> IO ()
withStandardFormat logLevel =
filterLogging (levelFilter logLevel)
. withPrefix ": "
. withThread
. withPackage
. withLevel
. withTime
Changelog
All notable changes to this project will be documented in this file.
1.1.0.12 - 2026-06-26
- Raise the
time upper bound to < 1.16.
1.1.0.11 - 2026-02-28