Logging system with docs and unittesting.
Some optimizations for logging functions.
Merge pull request #7 from DSoftOut/logging-system

Logging system