1.0.0 ā€¢ Published 2 years ago

mini-mongo-logger v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Add a really simple, lightweight and easy to use logger to your next MERN stack web application with just 2 lines of code.

āœØ NPM

How to use

const { initialize } = require("mini-mongo-logger");

initialize({
  production: process.env.NODE_ENV === "production",
  url: "Your mongodb url to store logs in your database",
});

Install

npm install

Now you can use logger in your server

const { logger } = require("mini-mongo-logger");

Log types

logger.success("success");
logger.warn("warn");
logger.error("error");
logger.info("info");
logger.other("other");

Author

šŸ‘¤ Avash Mitra

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2022 Avash Mitra. This project is MIT licensed.


This README was generated with ā¤ļø by readme-md-generator