Safe Haskell | None |
---|---|
Language | GHC2021 |
Internal module for logging types.
Synopsis
- newtype FileLog = UnsafeFileLog {}
- newtype ConsoleLog = UnsafeConsoleLog {
- unConsoleLog :: Text
- data LogMode
Documentation
FileLog
is a textual representation of a given log after it has
been formatted. No coloring is included, but we include the prefix
(e.g. Warn) along with a timestamp.
newtype ConsoleLog Source #
ConsoleLog
is a textual representation of a given log after it has
been formatted.
Instances
Show ConsoleLog Source # | |
Defined in Shrun.Logging.Types.Internal showsPrec :: Int -> ConsoleLog -> ShowS # show :: ConsoleLog -> String # showList :: [ConsoleLog] -> ShowS # | |
Eq ConsoleLog Source # | |
Defined in Shrun.Logging.Types.Internal (==) :: ConsoleLog -> ConsoleLog -> Bool # (/=) :: ConsoleLog -> ConsoleLog -> Bool # | |
(k ~ A_Getter, a ~ Text, b ~ Text) => LabelOptic "unConsoleLog" k ConsoleLog ConsoleLog a b Source # | |
Defined in Shrun.Logging.Types.Internal labelOptic :: Optic k NoIx ConsoleLog ConsoleLog a b Source # |
Determines the logging behavior. This option only affects console logs; File logs are unaffected.
LogModeSet | Sets the logging region to this log. |
LogModeAppend | Appends the log to the logging region. |
LogModeFinish | Closes the logging region, finishing with the log. |
Instances
Bounded LogMode Source # | |
Enum LogMode Source # | |
Show LogMode Source # | |
Eq LogMode Source # | |