Traditional logging vs AOP logging

前端 未结 4 1335
离开以前
离开以前 2020-12-01 14:40

I\'m starting this new project and we are thrashing out our logging/debugging approach and I wanted to put the question to the rest of you on SO, given

priva         


        
4条回答
  •  长情又很酷
    2020-12-01 15:11

    I dont think these should be viewed as mutually exclusive alternatives.

    I think AOP is great for tracing (i.e. logging method entry/exit and parameter values).

    I still use regular logging as well:

    1. For Info/Warning/Error Messages
    2. For debug messages during development to see the value of certain variables or to see which if/then path is used etc.

提交回复
热议问题