Skip to content

Instantly share code, notes, and snippets.

@AdityaRanjanSingh
Created March 6, 2020 13:26
Show Gist options
  • Save AdityaRanjanSingh/d939e123d81289976c76efd59672f00c to your computer and use it in GitHub Desktop.
Save AdityaRanjanSingh/d939e123d81289976c76efd59672f00c to your computer and use it in GitHub Desktop.
A log service for console loggin
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