HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulelog-base-0.12.0.1Haskell2010

Log.Class

The MonadLog type class of monads with logging capabilities.

  • 1 type
  • 1 class
  • 6 values
datadata UTCTime
#

This is the simplest representation of UTC. It consists of the day number, and a time offset from midnight. Note that if a day has a leap second added to it, it will have 86401 seconds.

Instances17Eq, Data, Ord, Read, Show, Generic, …
classclass Monad m => MonadLog (m :: Type -> Type) where
#

Represents the family of monads with logging capabilities. Each MonadLog carries with it some associated state (the logging environment) that can be modified locally with localData and localDomain.

Methods

Instances2MonadLog
valuelogInfo :: (MonadLog m, ToJSON a) => Text -> a -> m ()
#

Log a message and its associated data using current time as the event time and the LogInfo log level.