heavy-log-shortcuts: Simle api for heavy logger

[ deprecated, library, mit, system ] [ Propose Tags ]
Deprecated in favor of monad-logger

An alternative shortcut api for heavy-logger, removes vars functionality.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

  • No current members of group

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.0, 1.0.1
Dependencies base (>=4.7 && <5), fast-logger, heavy-logger (>=0.3.1.0 && <0.4), monad-control, text, text-format-heavy [details]
License MIT
Copyright 2019 Jappie Klooster
Author Jappie Klooster
Maintainer jappieklooster@hotmail.com
Category System
Home page https://github.com/jappeace/template#readme
Bug tracker https://github.com/jappeace/template/issues
Source repo head: git clone https://github.com/jappeace/template
Uploaded by Jappie at 2019-04-11T09:50:42Z
Distributions
Downloads 959 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-04-11 [all 1 reports]

Readme for heavy-log-shortcuts-1.0.1

[back to package description]

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.