Logger initialization

fix initialization sequence for logger