shrun-0.9: A utility program for running shell commands concurrently.
Safe HaskellNone
LanguageGHC2021

Shrun.Logging.Types.Internal

Description

Internal module for logging types.

Synopsis

Documentation

newtype FileLog Source #

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 

Fields

Instances

Instances details
Show FileLog Source # 
Instance details

Defined in Shrun.Logging.Types.Internal

Eq FileLog Source # 
Instance details

Defined in Shrun.Logging.Types.Internal

Methods

(==) :: FileLog -> FileLog -> Bool #

(/=) :: FileLog -> FileLog -> Bool #

(k ~ A_Getter, a ~ Text, b ~ Text) => LabelOptic "unFileLog" k FileLog FileLog a b Source # 
Instance details

Defined in Shrun.Logging.Types.Internal

newtype ConsoleLog Source #

ConsoleLog is a textual representation of a given log after it has been formatted.

Constructors

UnsafeConsoleLog 

Fields

Instances

Instances details
Show ConsoleLog Source # 
Instance details

Defined in Shrun.Logging.Types.Internal

Eq ConsoleLog Source # 
Instance details

Defined in Shrun.Logging.Types.Internal

(k ~ A_Getter, a ~ Text, b ~ Text) => LabelOptic "unConsoleLog" k ConsoleLog ConsoleLog a b Source # 
Instance details

Defined in Shrun.Logging.Types.Internal

data LogMode 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.