fix(log): No use global var for logLevel (refs #5072)