AOP hook for log