Added logging.
Setup log initialization.