Returns whether to ANSI escape codes with the stream out.
Instances For
Wrap text in ANSI escape sequences to make it bold and color it the ANSI colorCode.
Resets all terminal font attributes at the end of the text.
Instances For
A pure representation of output stream.
- stdout : OutStream
- stderr : OutStream
- stream (s : IO.FS.Stream) : OutStream
Instances For
Returns the real output stream associated with OutStream.
Instances For
Unicode icon for representing the log level.
Instances For
ANSI escape code for coloring text of at the log level.
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
Takes log entries between start (inclusive) and stop (exclusive).
Instances For
Removes log entries after pos (inclusive).
Instances For
Takes log entries before pos (exclusive).
Instances For
The max log level of entries in this log. If empty, returns trace.
Instances For
Instances For
Returns the monad's log.
Instances For
Returns the current end position of the monad's log (i.e., its size).
Instances For
Removes the section monad's log starting and returns it.
Instances For
Returns the log from x while leaving it intact in the monad.
Instances For
Returns the log from x and its result while leaving it intact in the monad.
Instances For
If x produces any logs, group them into an error block.
Instances For
Performs x and backtracks any error to the log position before x.
Instances For
Performs x and groups all logs generated into an error block.
Instances For
Captures IO in x into an informational log entry.
Instances For
Throw with the logged error message.
Instances For
MonadError instance for monads with Log state and Log.Pos errors.
Instances For
Fail without logging anything.
Instances For
Performs x. If it fails, drop its log and perform y.
Instances For
Alternative instance for monads with Log state and Log.Pos errors.
Instances For
Run self with the log taken from the state of the monad n.
Warning: If lifting self from m to n fails, the log will be lost.
Thus, this is best used when the lift cannot fail.
Instances For
Instances For
Run self with the log taken from the state of the monad n,
Warning: If lifting self from m to n fails, the log will be lost.
Thus, this is best used when the lift cannot fail. This excludes the
native log position failure of ELogT, which are lifted safely.
Instances For
Runs self in n and then replays the entries of the resulting log
using the new monad's logger. Translates an exception in this monad
to a none result.
Instances For
Runs self in n and then replays the entries of the resulting log
using the new monad's logger. Translates an exception in this monad to
a failure in the new monad.
Instances For
Configuration options for Lake logging.
- failLv : LogLevel
Fail if entries of at least this level have been logged.
Unlike some build systems, this does NOT convert such log entries to errors, and it does not necessarily abort execution when warnings are logged.
NOTE: Some logging monads do not support this option (e.g.,
LoggerIO). - outLv : LogLevel
The minimum log level for an log entry to be reported.
- ansiMode : AnsiMode
Whether to use ANSI escape codes in log output.
- out : OutStream
Where to write logs.
Instances For
Instances For
A monad equipped with a log, a log error position, and the ability to perform I/O.
Instances For
Runs a LogIO action in BaseIO using the specified log configuration.
Returns none if the action fails or if an entry of at least LogConfig.failLv has been logged.
On failure, all logs will be printed, ignoring the LogConfig.outLv setting.
Instances For
A monad equipped with a log function and the ability to perform I/O.
Unlike LogIO, log entries are not retained by the monad but instead eagerly
passed to the log function.