code-chunks / angular2-logger

A log4j inspired logger for angular 2.
MIT License
144 stars 41 forks source link

is any difference with console.log/warn/error? #167

Closed dyh333 closed 7 years ago

dyh333 commented 7 years ago

hi, @langley-agm , is this repo any difference with console.log/warn/error? i don't understand in what case should I use this repo

langley-agm commented 7 years ago

Hello @dyh333 ,

The most simple/basic use case is so you can see all the logging while working in development and turn it off for production.

One more common test case is to leave it showing only warning and errors, and when you want to debug or understand more in deep what's happening in the app, you turn info or debug mode on so you can see more info, and once you've found what you're looking for, to turn it back off.

dyh333 commented 7 years ago

yeah, thanks your reply