debug switch for logger