Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data LogLineFormat
- 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 ()
Documentation
data LogLineFormat #
Instances
data LogOptions #
Instances
Eq LogOptions # | |
Defined in Napkin.Logging (==) :: LogOptions -> LogOptions -> Bool # (/=) :: LogOptions -> LogOptions -> Bool # | |
Show LogOptions # | |
Defined in Napkin.Logging showsPrec :: Int -> LogOptions -> ShowS # show :: LogOptions -> String # showList :: [LogOptions] -> ShowS # |
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.09.
termLogEnv :: (forall a. LogItem a => ItemFormatter a) -> PermitFunc -> Verbosity -> IO LogEnv #
mkFileScribeWithFormatter :: (forall a. LogItem a => ItemFormatter a) -> FilePath -> PermitFunc -> Verbosity -> IO Scribe #