Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meowgorithm/mr-log
Just some Haskell functions for printing logging information
https://github.com/meowgorithm/mr-log
haskell logging
Last synced: 6 days ago
JSON representation
Just some Haskell functions for printing logging information
- Host: GitHub
- URL: https://github.com/meowgorithm/mr-log
- Owner: meowgorithm
- License: mit
- Created: 2020-03-09T15:19:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T14:55:56.000Z (over 4 years ago)
- Last Synced: 2024-10-31T11:41:35.825Z (about 2 months ago)
- Topics: haskell, logging
- Language: Haskell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
Mr. Log
=======A fistfull of Haskell functions for printing log info and, in one case, also
exiting with error.```haskell
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](https://github.com/meowgorithm)
## License
MIT