Skip to content

Instantly share code, notes, and snippets.

View TehreemAnsari's full-sized avatar
💭
Available for side projects on Data Science

Tehreem Ansari TehreemAnsari

💭
Available for side projects on Data Science
View GitHub Profile
@lrvick
lrvick / angular-logging.js
Last active February 3, 2021 04:26
AngularJS - Global logging override module. Enables you to write custom hooks to intercept, display, manipulate or re-transfer $log logs as you see fit. Also allows one to easily globally disable logs application wide, useful for production.
/**
* # Global logging module
*
* This is a global set of hooks that catch all $log messages sent out by the
* application. Currently they are simply passed off directly to console.log
* but this could be updated later to allow them to be stored locally, sent to
* a server etc.
*/
angular.module('ngLogging', [])