Log asynchronously - logging inline with key event processing is not a good idea.