Use logger macros only after configuring logger

fix #873