red: added LogLevelSwitch
green: implemented LogLevelSwitch