WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3c53a53

Browse files
committed
#13 - Now enhancing angular log before writing any log functions
1 parent 4240cc4 commit 3c53a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ var angular = window.angular;
8787
}]).
8888

8989
run(['$log', 'logEnhancer', function ($log, logEnhancer) {
90+
logEnhancer.enhanceAngularLog($log);
9091
if (!sprintf) {
9192
$log.warn('sprintf.js not found: https://github.com/alexei/sprintf.js, using fixed layout pattern "%s::[%s]> "');
9293
}
9394
if (!moment) {
9495
$log.warn('moment.js not found: http://momentjs.com, using non-localized simple Date format');
9596
}
96-
logEnhancer.enhanceAngularLog($log);
9797
}]);
9898
}(new LoggingEnhancer(sprintf, moment), angular, sprintf, moment));

0 commit comments

Comments
 (0)