angularjs - is it possible in angular to set the debug log level at runtime? -
is possible switch $logprovider.debugenabled([flag]);
@ runtime?
the current situation:
the angular client load settings server @ run phase. depends on settings set method $logprovider.debugenabled([flag])
.
thanks in advance, stevo
the short answer is: no, not really.
once application hass been configured through .config()
block, no further configuration can take place after application has bootstrapped.
this due way providers work; they're available @ configuration time. there might way force configuration, , manually re-inject new $log
service of controllers, if there way that, i'm not sure how.
Comments
Post a Comment