move console logs to log library