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

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -