Which design pattern would you consider when Logging is needed?

后端 未结 5 1976
悲哀的现实
悲哀的现实 2021-02-02 00:11

An application I\'m working on requires logging of actions, user who performs the action, and time of action to a database.

Which design pattern is most popular/appropri

5条回答
  •  渐次进展
    2021-02-02 01:01

    You can use AOP to apply logging without any intrusive behavior. AOP may feel like a mixture of Proxy and Decorator Pattern.

提交回复
热议问题