mini-mongo-logger

1.0.0 • Public • Published

Welcome to mini-mongo-logger 👋

Version Documentation Maintenance License: MIT

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

Package Sidebar

Install

npm i mini-mongo-logger

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.78 kB

Total Files

9

Last publish

Collaborators

  • avash_mitra