glog
Version
glog is currently available in version 1.0.1 and deprecated please use
log/slog
instead!
Idea
You know how it is. You want to log stuff and “hey, this library can do this”, “this library has that feature I definitely need”, “ohh, color would be a nice addition”, “here some code to set the loglevel from the environment”. I’ve been there just recently and so I started working on glog. My very own logging library. Many know that “logging libraries are like opinions: everyone has one”. Now I have one too.
Purposes
Jack of all trades but master of none: configurability. In glog you have
sane defaults (keep quiet if nothing problematic happens, errors to
stderr/infos to stdout) and the option to change pretty much everything
Time-format? Sure, you can set a format you’ve dreamt up. Want to change the
order of outputs? Go ahead.
Sourcecode
Sourcehut: https://git.sr.ht/~mpldr/glog
License
MPL 2-Clause License