openapi-petstore-0.1.0.0: Auto-generated openapi-petstore API Client

Safe HaskellSafe
LanguageHaskell2010

OpenAPIPetstore.Logging

Contents

Description

Logging functions

Synopsis

Type Aliases (for compatibility)

type LogExecWithContext = forall m. MonadIO m => LogContext -> LogExec m Source #

Runs a monad-logger block with the filter predicate

type LogExec m = forall a. LoggingT m a -> m a Source #

A monad-logger block

type LogContext = LogSource -> LogLevel -> Bool Source #

A monad-logger filter predicate

type LogLevel = LogLevel Source #

A monad-logger log level

default logger

initLogContext :: IO LogContext Source #

the default log environment

runDefaultLogExecWithContext :: LogExecWithContext Source #

Runs a monad-logger block with the filter predicate

stdout logger

stdoutLoggingExec :: LogExecWithContext Source #

Runs a monad-logger block targeting stdout, with the filter predicate

stderr logger

stderrLoggingExec :: LogExecWithContext Source #

Runs a monad-logger block targeting stderr, with the filter predicate

Null logger

runNullLogExec :: LogExecWithContext Source #

Disables monad-logger logging

nullLogger :: Loc -> LogSource -> LogLevel -> LogStr -> IO () Source #

monad-logger which does nothing

Log Msg

_log :: (MonadIO m, MonadLogger m) => Text -> LogLevel -> Text -> m () Source #

Log a message using the current time

Log Exceptions

logExceptions :: (MonadLogger m, MonadCatch m, MonadIO m) => Text -> m a -> m a Source #

re-throws exceptions after logging them

Log Level

Level Filter