MatrixAI / js-logger

TypeScript/JavaScript Logger Library
https://polykey.com
Apache License 2.0
1 stars 0 forks source link

Integrate DEBUG environment variable #2

Closed CMCDragonkai closed 3 years ago

CMCDragonkai commented 3 years ago

Turns out that the DEBUG env variable is a common convention in alot of node apps. And people use: https://www.npmjs.com/package/debug

I like the way DEBUG as a environment variable works, and we can preserve this convention since our loggers have "names" and thus the equivalent of namespaces as well.

CMCDragonkai commented 3 years ago

Not a priority right now... but worth investigating later.

Our library is still more flexible to have different kinds of error logging capabilities plus the formatting.

CMCDragonkai commented 3 years ago

I don't think we'll ever need this.