Safe Haskell | Safe-Inferred |
---|---|
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
- 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
Generic LogOptions # | |
Defined in Napkin.Logging type Rep LogOptions :: Type -> Type # from :: LogOptions -> Rep LogOptions x # to :: Rep LogOptions x -> LogOptions # | |
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 # | |
type Rep LogOptions # | |
Defined in Napkin.Logging type Rep LogOptions = D1 ('MetaData "LogOptions" "Napkin.Logging" "napkin-1.0.0-B79azc00rn1K8mj00hwhwG" 'False) (C1 ('MetaCons "LogOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "severity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Severity) :*: S1 ('MetaSel ('Just "lineFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LogLineFormat))) |
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 #
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 # |