Skip to content
Simle api for heavy logger
Haskell Nix Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
src/System/Log/Heavy
.gitignore
.stylish-haskell.yaml
LICENSE
Readme.md
app
heavy-log-shortcuts.cabal
heavy-log-shortcuts.nix
makefile
package.yaml
shell.nix

Readme.md

Heavy log shortcuts

An alternative shortcut api for heavy-logger. This has infected several of my projects already so I'm putting it online. Although, it maybe better to use someting like katip I just don't want to invest the time into learning another logging framework.

Removes the vars functionality, fixes not being able to use '{}'. Puts in place some sane default shortcuts.

If we don't want data use:

debug0 "msg"

if we do want data (which is almost always the case):

debug "msg" somedata

If we want multiple datas:

debug "msg" (onedata, twodata)

I usually import this module qualified as Log, then you can do:

Log.debug "oh no my house is on fire" house

Now it reads almost like a sentence.

You can’t perform that action at this time.