add logging decorator