Safe Haskell | None |
---|---|
Language | GHC2021 |
Synopsis
- data LogLineFormat
- type CondensedLogging = Bool
- data LogOptions = LogOptions {}
- initLogger :: LogOptions -> IO LogEnv
- mkLogFormatter :: LogLineFormat -> forall a. LogItem a => ItemFormatter a
- simpleFormat :: LogItem a => ItemFormatter a
- handlePureErrors :: Builder -> Builder
- termLogEnv :: (forall a. LogItem a => ItemFormatter a) -> PermitFunc -> Verbosity -> IO LogEnv
- mkFileScribeWithFormatter :: (forall a. LogItem a => ItemFormatter a) -> FilePath -> PermitFunc -> Verbosity -> IO Scribe
- timeLog :: Katip m => String -> m b -> m b
- echo :: Katip m => Severity -> LogStr -> m ()
- echo' :: (Katip m, LogItem a) => a -> Severity -> LogStr -> m ()
- tableObject :: SpecTableName -> Specs bk -> SimpleLogPayload
- tableDepObject :: SpecTableName -> Specs bk -> SimpleLogPayload
- taskObject :: Task (Executable b) -> QueryTransformer -> SimpleLogPayload
- taskObjectDep :: Task (Executable b) -> QueryTransformer -> SimpleLogPayload
- taskObject' :: Text -> Text -> Task (Executable b) -> QueryTransformer -> SimpleLogPayload
Documentation
data LogLineFormat #
Instances
type CondensedLogging = Bool #
data LogOptions #
Instances
initLogger :: LogOptions -> IO LogEnv #
mkLogFormatter :: LogLineFormat -> forall a. LogItem a => ItemFormatter a #
simpleFormat :: LogItem a => ItemFormatter a #
Simplified version of the bracketed
log format. Only timestamp and debug level are bracketed. For example:
[2022-01-04 16:39:21][Debug] Starting interpreter [2022-01-04 16:39:23][Debug] Interpreter start performed in 2.09s
handlePureErrors :: Builder -> Builder #
termLogEnv :: (forall a. LogItem a => ItemFormatter a) -> PermitFunc -> Verbosity -> IO LogEnv #
mkFileScribeWithFormatter :: (forall a. LogItem a => ItemFormatter a) -> FilePath -> PermitFunc -> Verbosity -> IO Scribe #
tableObject :: SpecTableName -> Specs bk -> SimpleLogPayload #
tableDepObject :: SpecTableName -> Specs bk -> SimpleLogPayload #
taskObject :: Task (Executable b) -> QueryTransformer -> SimpleLogPayload #
taskObjectDep :: Task (Executable b) -> QueryTransformer -> SimpleLogPayload #
taskObject' :: Text -> Text -> Task (Executable b) -> QueryTransformer -> SimpleLogPayload #
Orphan instances
FromBuilder LogStr # | |
fromBuilder :: Builder -> LogStr # |