Safe Haskell | None |
---|---|
Language | GHC2021 |
Shrun.Logging.Types.Internal
Description
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.
Constructors
UnsafeFileLog | |
newtype ConsoleLog Source #
ConsoleLog
is a textual representation of a given log after it has
been formatted.
Constructors
UnsafeConsoleLog | |
Fields
|
Instances
Show ConsoleLog Source # | |
Defined in Shrun.Logging.Types.Internal Methods showsPrec :: Int -> ConsoleLog -> ShowS # show :: ConsoleLog -> String # showList :: [ConsoleLog] -> ShowS # | |
Eq ConsoleLog Source # | |
Defined in Shrun.Logging.Types.Internal | |
(k ~ A_Getter, a ~ Text, b ~ Text) => LabelOptic "unConsoleLog" k ConsoleLog ConsoleLog a b Source # | |
Defined in Shrun.Logging.Types.Internal Methods labelOptic :: Optic k NoIx ConsoleLog ConsoleLog a b Source # |
Determines the logging behavior. This option only affects console logs; File logs are unaffected.
Constructors
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 # | |