Safe Haskell | None |
---|---|
Language | GHC2024 |
Synopsis
- data LogLineFormat
- type CondensedLogging = Bool
- data LogOptions = LogOptions {}
- data LogTarget
- mkLogFormatter :: LogLineFormat -> forall a. LogItem a => ItemFormatter a
- simpleFormat :: LogItem a => ItemFormatter a
- handlePureErrors :: Builder -> Builder
- 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
Documentation
data LogLineFormat #
Instances
type CondensedLogging = Bool #
data LogOptions #
LogOptions | |
|
Instances
Instances
Generic LogTarget # | |||||
Defined in Napkin.Logging
| |||||
Show LogTarget # | |||||
Eq LogTarget # | |||||
type Rep LogTarget # | |||||
Defined in Napkin.Logging type Rep LogTarget = D1 ('MetaData "LogTarget" "Napkin.Logging" "napkin-spec-2.0.0-7NH5JHRFo7V8BQP5NCfMo1" 'False) (C1 ('MetaCons "Console" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "File" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath))) |
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 #
mkFileScribeWithFormatter :: (forall a. LogItem a => ItemFormatter a) -> FilePath -> PermitFunc -> Verbosity -> IO Scribe #
tableObject :: SpecTableName -> Specs bk -> SimpleLogPayload #
Orphan instances
FromBuilder LogStr # | |
fromBuilder :: Builder -> LogStr # |