
log-vwer is the ultimate plug-and-play toolkit for Node.js developers who are tired of messy console.log statements. It instantly gives you a professional-grade dashboard to view, search, and filter your application logs in real-time.console.log("something happened") everywhere. It’s messy, hard to read, and gets lost in your server terminal.log-vwer fixes this.log-vwer is built to be secure. You can easily put your own login system in front of it, so only you and your team can see the logs.log-vwer to your project.app.js or server.js) and add the following code.node server.jshttp://localhost:3000. This will create your first "info" log.http://localhost:3000/error-test. This will create your first "error" log.http://localhost:3000/_logs. You'll see your beautiful new dashboard with the logs you just created!log-vwer to fit your needs perfectly.Promise that gives you the logger object.serviceName (Required) A name for your app. This helps if you have multiple apps logging to the same place. Any string 'My API', 'User Authentication Service' store Where you want to save your logs. Defaults to 'memory'. 'mongodb', 'file', 'memory' store: 'file' mongoUrl (Required for MongoDB) The full connection address for your MongoDB database. A MongoDB connection string 'mongodb+srv://user:pass@cluster.mongodb.net/logs' filePath (Required for File) The path to the file where you want to save logs. A file path './logs/app.log'logger, it gives you these simple methods to use:logger.info("User signed up.", { userId: 123 }) - For general information.logger.warn("Cache is getting full.") - For things that aren't errors yet, but might become a problem.logger.error("Database connection failed!", { error: err.message }) - For when things break.logger.debug("Calculating user scores...", { step: 1 }) - For detailed developer-only messages.message (string): The main thing you want to say.metadata (object, optional): Any extra data you want to save with the log. This is super useful for debugging.mongodb Your live, public website. It's powerful, can store millions of logs, and never forgets them. You can search it very quickly. You need to have a MongoDB database running somewhere. file Small projects or servers. It's very simple. It just creates a text file with all your logs. Easy to read and backup. Can get slow if you have too many logs. You have to manage the file yourself. memory Developing and testing on your own computer. It's incredibly fast and requires zero setup. When you stop your app, all logs disappear. Logs are not saved permanently. They are lost on every restart.log-vwer is designed to be a "plugin" for your existing security. Just add your security check (middleware) right before you add viewerMiddleware.git checkout -b feature/AmazingNewFeature)git commit -m 'Add some AmazingNewFeature')git push origin feature/AmazingNewFeature)LICENSE file for more details.Posted Jul 6, 2025
Developed log-vwer, a toolkit for Node.js developers to manage application logs efficiently.