
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@amirsohail1/node-super-logger
Advanced tools
this is a simple userful nodejs logger that every developer needs its super easy to use , and get super cool colorfull logs
node-super-logger
is a simple yet powerful logging middleware for Node.js applications. It logs requests in a colorful and structured way, making debugging easier for developers.
✅ Logs request method, URL, timestamp, and status code.
✅ Highlights errors and success responses with different colors.
✅ Logs request body, query parameters, and URL parameters.
✅ Easy to integrate with any Express.js application.
✅ Lightweight with zero configuration required.
Install the package using npm:
npm install @amirsohail1/node-super-logger
Or using yarn:
yarn add @amirsohail1/node-super-logger
import express from "express";
import {
logger,
bodyLogger,
paramLogger,
queryLogger,
} from "@amirsohail1/node-super-logger";
const app = express();
app.use(express.json()); // To parse JSON request bodies
// Apply the logger middleware
app.use(logger);
app.use(bodyLogger);
app.use(paramLogger);
app.use(queryLogger);
app.get("/test/:id", (req, res) => {
res.json({ message: "Logging is working perfectly!" });
});
app.listen(3000, () => console.log("Server running on port 3000"));
Logs request details like method, URL, timestamp, response status, and response time.
app.use(logger);
📌 Example Output in Console:
Request Log:
Timestamp: 3/2/2025, 10:00:00 AM
Method: GET, URL: /test/123
Status: 200 (Green Highlighted)
Response Time: 12 ms
Logs request body data for POST, requests.
app.use(bodyLogger);
📌 Example Output:
Request Body:
{ "name": "John", "email": "john@example.com" }
Logs route parameters from dynamic routes like /user/:id
.
app.use(paramLogger);
📌 Example Output:
Request Params:
{ "id": "123" }
Logs route parameters from dynamic routes like /user/:id
.
Logs request body data for POST, requests. /user
.
app.use(bodyLogger);
app.use(paramLogger);
📌 Example Output:
Request Params:
{ "id": "123" };
Request Body:
{ "name": "John", "email": "john@example.com" };
Logs query parameters from URLs like /search?query=book
.
app.use(queryLogger);
📌 Example Output:
Request Query:
{ "query": "book" }
GitHub Repository: node-super-logger
Found an issue? Report it here: Issues
This package is licensed under the ISC License.
Happy Logging! 🚀
FAQs
this is a simple userful nodejs logger that every developer needs its super easy to use , and get super cool colorfull logs
We found that @amirsohail1/node-super-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.