2 ms·
Things are changing, but some problems remain the same. Right now, you have a pretty solid logging library in CL that is pretty much the go-to for anything but
by TeMPOraL 8y ago
Things are changing, but some problems remain the same.
Right now, you have a pretty solid logging library in CL that is pretty much the go-to for anything but simplest of needs: log4cl[0]. It's feature-rich, performant, and even integrates with Emacs/SLIME. The README covers a lot of those things... briefly. Good luck figuring out how to e.g. use the (log:config) facility for anything more complicated than changing log levels. As you can see[1], it has a huge docstring describing a lot of things, but the description is shallow. It's like 20% of what is needed to figure out common things like just saving output to a fresh file (without automatic log rotation).
This is IMO a good example of the problem I see in those libraries that are actually solid and done. They miss detailed user-oriented documentation, forcing you to wade through code, which can get pretty complex[2].
--
[0] - https://github.com/sharplispers/log4cl https://github.com/sharplispers/log4cl
[1] - https://github.com/sharplispers/log4cl/blob/8c42ca6bd07726fcbb96b86455ebb6a2751bf76c/src/configurator.lisp#L22 https://github.com/sharplispers/log4cl/blob/8c42ca6bd07726fc...
[2] - Try to macroexpand a simple call to logger, like (log:warn "Foo" some-object). Performance and power can be nicely wrapped under a clean set of macros, but if you deviate from the intended use case, you'd better have a spare couple of hours for figuring out how things work.