Logging framework for fast asynchronous logging