Repository navigation
LogPro v0.4.0: Professional Logging Simplified
Release Description
We're excited to announce LogPro v0.4.0, our professionally crafted TypeScript logging utility with a clear focus on simplicity and flexibility.
馃殌 Highlights
- Zero-Dependency Core: No external dependencies in the base package
- Structured Logging: JSON formatted logs for seamless analysis integration
- Five Log Levels: Complete control with debug, info, warn, error, and fatal levels
- Context Support: Enrich logs with structured metadata
- Optional Telegram Integration: Real-time critical alert notifications
- Pretty Formatting: Human-readable logs with color support for development
- Child Loggers: Create logger hierarchies with inherited context
馃搵 Usage Example
import { getLogger, LogLevel, TelegramTransport } from 'logpro';
// Create a named logger
const logger = getLogger('api-service');
// Configure with Telegram notifications for critical errors
// First install: npm install node-telegram-bot-api
logger.addTransport(new TelegramTransport({
token: 'YOUR_BOT_TOKEN',
chatId: 'YOUR_CHAT_ID',
minLevel: LogLevel.ERROR
}));
// Regular logging
logger.info('Service started', { port: 3000 });
// Errors automatically sent to Telegram
logger.error('Database connection failed', {
retryCount: 3,
dbHost: 'primary-db'
});馃尡 Lightweight & Extensible
LogPro is designed to be lightweight yet powerful. The core package has zero dependencies, and extensions like Telegram integration are completely optional.
馃搱 What's New
- Package renamed to "LogPro" to reflect its professional capabilities
- Improved documentation with clear examples
- Enhanced error handling for optional dependencies
Start logging professionally with LogPro today!