Logging in Scala

前端 未结 14 2043
南旧
南旧 2020-12-07 06:51

What is a good way to do logging in a Scala application? Something that is consistent with the language philosophy, does not clutter the code, and is low-maintenance and uno

14条回答
  •  半阙折子戏
    2020-12-07 07:27

    After using slf4s and logula for a while, I wrote loglady, a simple logging trait wrapping slf4j.

    It offers an API similar to that of Python's logging library, which makes the common cases (basic string, simple formatting) trivial and avoids formatting boilerplate.

    http://github.com/dln/loglady/

提交回复
热议问题