gitea-api-1.23.1.0: Auto-generated gitea-api API Client
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gitea.Logging

Description

Logging functions

Synopsis

Documentation

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

Runs a monad-logger block with the filter predicate

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

A monad-logger filter predicate

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

A monad-logger block

type LogLevel = LogLevel Source #

A monad-logger log level

initLogContext :: IO LogContext Source #

the default log environment

infoLevelFilter :: LogSource -> LogLevel -> Bool Source #

runDefaultLogExecWithContext :: LogExecWithContext Source #

Runs a monad-logger block with the filter predicate

runNullLogExec :: LogExecWithContext Source #

Disables monad-logger logging

stdoutLoggingExec :: LogExecWithContext Source #

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

stderrLoggingExec :: LogExecWithContext Source #

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

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

monad-logger which does nothing

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

Log a message using the current time

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

re-throws exceptions after logging them

minLevelFilter :: LogLevel -> LogSource -> LogLevel -> Bool Source #