set logger before initialization