add log initialization