Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data LogLineFormat
- type CondensedLogging = Bool
- data LogOptions = LogOptions {}
- logOptions_severity :: Lens' LogOptions Severity
- logOptions_lineFormat :: Lens' LogOptions LogLineFormat
- initLogger :: LogOptions -> IO LogEnv
- mkLogFormatter :: LogLineFormat -> forall a. LogItem a => ItemFormatter a
- simpleFormat :: LogItem a => ItemFormatter a
- 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
Documentation
data LogLineFormat #
Instances
type CondensedLogging = Bool #
data LogOptions #
Instances
Show LogOptions # | |
Defined in Napkin.Logging showsPrec :: Int -> LogOptions -> ShowS # show :: LogOptions -> String # showList :: [LogOptions] -> ShowS # | |
Eq LogOptions # | |
Defined in Napkin.Logging (==) :: LogOptions -> LogOptions -> Bool # (/=) :: LogOptions -> LogOptions -> Bool # |
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
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 #
Orphan instances
FromBuilder LogStr # | |
fromBuilder :: Builder -> LogStr # |