optimizations:

* caching all contents of a log record before fprintf() is called
* improvement of log_info() implementation