How to add a custom log level to logger in ruby?

后端 未结 6 422

I need to add a custom log level like \"verbose\" or \"traffic\" to ruby logger, how to do?

6条回答
  •  [愿得一人]
    2021-01-11 15:48

    If you start needing a bunch of custom stuff, it may be worth checking out log4r, which is a flexible logging library that lets you do a bunch of interesting/useful stuff easily.

提交回复
热议问题