Wrapper for logging events