refactoring log initialization out of the start method.