Added initial log implementation.
Added log level setting.