Is it possible to switch the `$logProvider.debugEnabled([flag]);` at runtime?

The current situation:

The angular client load settings from the server at the run phase. Depends on the settings I would like to set the method `$logProvider.debugEnabled([flag])`.

Thanks in advance, Stevo