env-logger
You need to have different log outputs depending on different environments? Than this is the logger for you!
There is no need to look further. This logger is minimal and lightweight!
Features:
- Log your content to the console if the level is greater or equal the required level
- Support for
info
, log
, warn
, error
- Methods perform just like there equivalent kown from the
console
object
Usage:
import logger from 'env-logger';
logger.init(3);
logger.log(2, 'Hello World');
logger.warn(3, 'Hi', 'how', 'are', 'you?');
Contribution & License
This project uses the MIT license. Feel free to contribute and
expand this project.