Logging in Scala

前端 未结 14 2020
南旧
南旧 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:38

    Logging in 2020

    I was really surprised that Scribe logging framework that I use at work isn't even mentioned here. What is more, it doesn't even appear on the first page in Google after searching "scala logging". But this page appears when googling it! So let me leave that here.

    Main advantages of Scribe:

    • it is NOT a slf4j wrapper
    • supports also Scala.js and Scala Native
    • it is really fast, check comparison here: https://www.matthicks.com/2018/02/scribe-2-fastest-jvm-logger-in-world.html

提交回复
热议问题