kubernetes-api-132.0.0: Auto-generated kubernetes-api API Client
Safe HaskellNone
LanguageHaskell2010

Kubernetes.OpenAPI.Logging

Description

Logging functions

Synopsis

Documentation

type LogExecWithContext = forall (m :: Type -> Type) a. MonadIO m => LogContext -> LogExec m a Source #

Runs a Katip logging block with the Log environment

type LogContext = LogEnv Source #

A Katip Log environment

type LogExec (m :: Type -> Type) a = KatipT m a -> m a Source #

A Katip logging block

type LogLevel = Severity Source #

A Katip Log severity

initLogContext :: IO LogContext Source #

the default log environment

runDefaultLogExecWithContext :: LogExecWithContext Source #

Runs a Katip logging block with the Log environment

stdoutLoggingExec :: LogExecWithContext Source #

Runs a Katip logging block with the Log environment

stdoutLoggingContext :: LogContext -> IO LogContext Source #

A Katip Log environment which targets stdout

stderrLoggingExec :: LogExecWithContext Source #

Runs a Katip logging block with the Log environment

stderrLoggingContext :: LogContext -> IO LogContext Source #

A Katip Log environment which targets stderr

runNullLogExec :: LogExecWithContext Source #

Disables Katip logging

_log :: (Applicative m, Katip m) => Text -> LogLevel -> Text -> m () Source #

Log a katip message

logExceptions :: (Katip m, MonadCatch m, Applicative m) => Text -> m a -> m a Source #

re-throws exceptions after logging them