Fixed log initialization in editor mode.