Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data LogConfig = LogConfig {
- _logNamespace :: Namespace
- _logContext :: LogContexts
- _logEnv :: LogEnv
- logNamespace :: Lens' LogConfig Namespace
- logContext :: Lens' LogConfig LogContexts
- logEnv :: Lens' LogConfig LogEnv
- data InitialLogNamespace = InitialLogNamespace {}
- initialLogEnvironment :: Lens' InitialLogNamespace Text
- initialLogProcessName :: Lens' InitialLogNamespace Text
- evalKatip :: forall r a. KatipContext (Sem r) => Sem (Logger ': r) a -> Sem r a
Setup and Config
LogConfig | |
|
logNamespace :: Lens' LogConfig Namespace Source #
logContext :: Lens' LogConfig LogContexts Source #
data InitialLogNamespace Source #
initialLogEnvironment :: Lens' InitialLogNamespace Text Source #
initialLogProcessName :: Lens' InitialLogNamespace Text Source #
Eval
Orphan instances
Members '[Embed IO, Reader LogConfig] r => Katip (Sem r) Source # | |
getLogEnv :: Sem r LogEnv localLogEnv :: (LogEnv -> LogEnv) -> Sem r a -> Sem r a | |
Members '[Embed IO, Reader LogConfig] r => KatipContext (Sem r) Source # | |
getKatipContext :: Sem r LogContexts localKatipContext :: (LogContexts -> LogContexts) -> Sem r a -> Sem r a getKatipNamespace :: Sem r Namespace localKatipNamespace :: (Namespace -> Namespace) -> Sem r a -> Sem r a |