Add a logger as a uniform way to dump log information
Record the mongodb activities with multithreads

When recording starts, 3 threads will be launched.

* 2 threads for receiving entries from oplog and profiler results.
* 1 threads will in charge of all writes to the files.