dylang / logging

Lightweight informative modern console logging.
MIT License
54 stars 13 forks source link

Support for log levels? #13

Open darkpixel opened 3 years ago

darkpixel commented 3 years ago

It would be a nice addition if the app paid attention to the environment variables DEBUG, LOG_LEVEL, and LOG_DEBUG.

i.e. LOG_LEVEL=info LOG_DEBUG=myapp,myapi node index.js

Using that example it would cause only INFO and above to be output and only from 'myapp' or 'myapi'.