aop hook for log