mirror of
https://github.com/dzeiocom/libs.git
synced 2025-08-04 19:01:58 +00:00
Updated Logger implement Console
This commit is contained in:
@@ -2,5 +2,13 @@ import Logger from './Logger'
|
||||
|
||||
// Browser Import
|
||||
|
||||
/**
|
||||
* Init Logger in global context and add function to replace default console
|
||||
*/
|
||||
|
||||
// @ts-ignore
|
||||
window.Logger = Logger
|
||||
// @ts-ignore
|
||||
window.initConsole = function() {
|
||||
window.console = new Logger('Console')
|
||||
}
|
||||
|
Reference in New Issue
Block a user