tinttrace
v1.0.2
Published
Elegant Logging with Timestamps, Filename Context, and Colorful Outputs
Downloads
1
Maintainers
Readme
tinttrace
tinttrace
is a lightweight logging utility for Node.js applications. It provides customizable log levels, colored log messages, timestamps.
Installation
You can install tinttrace
using npm:
npm install tinttrace
Usage
Import the tinttrace module in your code and start logging:
const logger = require("tinttrace");
logger.info("This is an info log.");
logger.error("This is an error log.");
Output
Your console looks something like this:
Advantages
1. Enhanced Separation:
Divider lines are intelligently placed between each console log, ensuring improved readability and visual separation of individual logs.
2. Color-Coded Bullets:
Every log message is accompanied by a color-coded bullet that helps you quickly identify the log level, such as errors, warnings, and informational messages.
3. Precise Timestamps:
Each log entry is precisely timestamped, providing you with a clear understanding of when a particular event occurred.
4. File Context Inclusion:
The logger not only captures your log message but also automatically includes the name of the file where the log originates. This contextual information is crucial for tracing and debugging.
Upcoming features
1. log streaming for real-time monitoring
2. Transports for store logs in different locations and formats
Support
For support, email [email protected]