meowgorithm / mr-log

Just some Haskell functions for printing logging information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mr. Log

A fistfull of Haskell functions for printing log info and, in one case, also exiting with error.

import System.IO.MrLog ( printInfo, printWarn, printErr, fatal )

main :: IO ()
main = do

    -- Prints:
    -- [INFO] hello!
    printInfo "hello!"

    -- Prints:
    -- [WARN] uh oh
    printWarn "uh oh"

    -- Prints:
    -- [ERROR] oh no
    printErr "oh no"

    -- Prints:
    -- [FATAL] something went very wrong!
    -- ...and exits
    fatal "something went very wrong!"

Author

Christian Rocha

License

MIT

About

Just some Haskell functions for printing logging information

License:MIT License


Languages

Language:Haskell 100.0%