sandwich-0.1.0.3: Yet another test framework for Haskell
Safe HaskellNone
LanguageHaskell2010

Test.Sandwich.Formatters.LogSaver

Description

A simple formatter that saves all logs from the test to a file.

Synopsis

Documentation

defaultLogSaverFormatter :: LogSaverFormatter Source #

logSaverPath :: LogSaverFormatter -> LogPath Source #

Path where logs will be saved.

logSaverLogLevel :: LogSaverFormatter -> LogLevel Source #

Minimum log level to save.

data LogPath Source #

A path under which to save logs.

Constructors

LogPathRelativeToRunRoot FilePath

Interpret the path as relative to the test's run root. (If there is no run root, the logs won't be saved.)

LogPathAbsolute FilePath

Interpret the path as an absolute path.