A high-performance, extensible logging framework with type safety, multiple log levels, rich formatting, and plugin support. Ideal for applications needing structured, reliable, and scalable logging.
A powerful, pluggable, and flexible type-safe logger for modern applications.
✨ Features
🔌 Plugin Architecture: Extensible logging through a powerful plugin system
🎯 Multiple Log Levels: Support for Error, Warn, Info, Debug, and Verbose levels
⚡ Pipeline Processing: Built on Hyperse Pipeline for efficient message processing
🎨 Customizable Context: Extend logger context with custom properties
🛡️ TypeScript Support: Full TypeScript support with comprehensive type definitions
🚀 High Performance: Optimized for production use with minimal overhead
🔧 Flexible Configuration: Easy setup with sensible defaults
📝 Rich Message Formatting: Support for structured logging with metadata
🔄 Async Support: Built-in support for asynchronous operations
🛠️ Error Handling: Comprehensive error handling and recovery mechanisms
🎭 Multiple Output Formats: Console, file, and custom output formats
🔍 Debugging Tools: Enhanced debugging capabilities with stack traces
🔄 Plugin Context Merging: Automatic merging and type inference of plugin contexts
📦 Installation
🚀 Quick Start
Basic Usage
Advanced Usage with Custom Context
🔌 Plugin System
Hyperse Logger uses a powerful plugin architecture that allows you to customize every aspect of the logging process. Plugins can be combined to create sophisticated logging pipelines.
Available Plugins
Console Plugin (@hyperse/logger-plugin-console)
A console plugin for @hyperse/logger that provides rich console output with customizable formatting, colors, and timestamps.
A standard output plugin for @hyperse/logger that provides rich terminal output with customizable formatting, colors, and timestamps. This plugin is designed specifically for Node.js environments and outputs to stdout/stderr.