You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lwhiteley edited this page Sep 22, 2014
·
4 revisions
If you want to quickly toggle between using your custom log pefix rules and the default rules, te following example shows you how
app.config(['logExProvider',function(logExProvider){// this forces log-ex to use the default rules// passing true as a parameter does the same thing. // eg logExProvider.useDefaultLogPrefix(true);logExProvider.useDefaultLogPrefix();}]);
app.config(['logExProvider',function(logExProvider){//this tells log-ex to use the custom rules (if set)logExProvider.useDefaultLogPrefix(false);}]);