Formatting slf4j to log message types with colors

前端 未结 5 2247
情书的邮戳
情书的邮戳 2021-02-07 04:55

I am using slf4j for logging in my Java Application. It involves a lot logging and log monitoring.
Sometimes it is really difficult to read and find information from logs w

5条回答
  •  春和景丽
    2021-02-07 05:04

    I use filters for both logging level and package. This example comes from Spring boot application.properties

       logging.level.root=warn
       logging.level.org.springframework=warn
       logging.level.org.hibernate=warn
       logging.level.org.starmonkey.brown=DEBUG
    

    This way I see only messages I want to see

提交回复
热议问题