shell-utility-0.0: Utility functions for writing command-line programs

Safe HaskellSafe
LanguageHaskell98

Shell.Utility.Log

Description

Primitive verbosity controlled logging.

Synopsis

Documentation

warn :: Verbosity -> String -> IO () Source #

Non fatal condition that may indicate a problem.

Display on stderr at normal verbosity and above.

notice :: Verbosity -> String -> IO () Source #

Useful status message.

Display at normal verbosity and above.

This is for the ordinary helpful status messages that users see. Just enough information to know that things are working but not floods of detail.

info :: Verbosity -> String -> IO () Source #

More detail on the operation of some action.

Display at verbose verbosity and above.

debug :: Verbosity -> String -> IO () Source #

Detailed internal debugging information

Display for deafening verbosity.