Fixed log.
(1) added log output
(2) moved util for log to SBEngine.