How to efficiently add method name to Java logging message without typing it in manually?

后端 未结 0 1423
后悔当初
后悔当初 2021-01-03 10:43

In my Java application, I would like the logs to reflect the calling method name in the message. So that a the following code:

void foo(){
   logger.info(&quo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题