开发者

symfony1.4 propel1.5 audit log

开发者 https://www.devze.com 2023-02-24 15:07 出处:网络
I\'m using Symfony 1.4 with the Propel 1.5 plugin. I need to create an audit log that shows reads/wr开发者_JAVA技巧ites to the database - with the user who\'s logged in.

I'm using Symfony 1.4 with the Propel 1.5 plugin.

I need to create an audit log that shows reads/wr开发者_JAVA技巧ites to the database - with the user who's logged in.

I would like to turn on full query logging to a separate file. If I use a custom logger class, I could insert the username before logging.

How can I do this in symfony?


You can use the following behavior: https://github.com/Carpe-Hora/AuditableBehavior. It has been written by a Propel core team member :)

0

精彩评论

暂无评论...
验证码 换一张
取 消