Logging with interception.