initialize logger before args check