HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduletrace-dispatcher-2.13.1Haskell2010

Cardano.Logging.Configuration

  • 2 types
  • 13 values
valueconfigureTracers
  1. :: (MetaTrace a, MonadIO m)
  2. => ConfigReflection
  3. -> TraceConfig
  4. -> [Trace m a]
  5. -> m ()
#

Call this function at initialisation, and later for reconfiguration. Config reflection is used to optimise the tracers and has to collect information about the tracers. Although it is possible to give more then one tracer of the same time, it is not a common case to do this.

By guaranteeing fallback values in the config's namespace root, the Debug severity value here should never get used. If it has to be used, this points to a severely erroneous config, or an implementation error in the application's MetaTrace instance(s). For those cases only, this ensures the affected trace message isn't silently filtered out.