$logProvider
Configure logging behavior for $log.
Use $logProvider during module configuration to enable debug logging or
replace the logger implementation.
Exact provider members are documented in TypeDoc:
Debug Logging
angular.module('app', []).config(($logProvider) => {
$logProvider.debug = true;
});
Custom Logger
angular.module('app', []).config(($logProvider) => {
$logProvider.setLogger(() => ({
log: console.log,
info: console.info,
warn: console.warn,
error: console.error,
debug: console.debug,
}));
});
See also $log.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.