Is there a Logback Layout that Creates JSON Objects with Message Parameters as Attributes?

后端 未结 5 757
天命终不由人
天命终不由人 2021-02-02 09:32

I want to send log events to Loggly as JSON objects with parameterized string messages. Our project currently has a lot of code that looks like this:

String some         


        
5条回答
  •  广开言路
    2021-02-02 09:38

    Here's a recently created project that provides a JSON-specific logging API and works with SLF4J:

    https://github.com/savoirtech/slf4j-json-logger

提交回复
热议问题