Created
March 6, 2020 13:26
-
-
Save AdityaRanjanSingh/d939e123d81289976c76efd59672f00c to your computer and use it in GitHub Desktop.
A log service for console loggin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class Logger { | |
logError(): void { | |
console.error('Error',...args); | |
}, | |
logInfo(): void { | |
console.info('Info',...args); | |
}, | |
logWarn(): void { | |
console.info('Warning',...args); | |
} | |
log(): void { | |
console.info('Debug',...args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment