Asynchronous Logging

后端 未结 5 1448
囚心锁ツ
囚心锁ツ 2021-01-02 01:51

Right now in my application,at certain points we are logging some heavy stuff into the log files.

Basically only for logging we are creating JSON of the data availab

5条回答
  •  猫巷女王i
    2021-01-02 02:26

    Have a look at Logback,AsyncAppender it already provide separate threadpool, queue etc and is easily configurable, it almost do the same as you are doing, but saves you from re-inventing the wheel.

提交回复
热议问题