Fixed memory leak in core::SystemTime::format.
Added logging functions.
Added test for logging functions.