Something like: http://www.codeproject.com/Articles/288827/g-log-An-efficient-asynchronous-logger-using-Cplus (Source: https://bitbucket.org/KjellKod/g2log)