Set logger level base on settings.