Skip to main content
MagicLogger

MagicLog

The command center for MagicLogger

|

Transform your debugging experience with intelligent logging that actually makes sense. See patterns, track performance, and ship faster with confidence.

Terminal
$npm install magiclogger
0KB
Tiny Bundle
0K/s
Logs Per Sec
0
Dependencies
0β˜…
Developer Joy
⏳ Loading MagicLogger...

🎯 Try Individual Scenarios:

πŸ–₯️ Console Output0 logs

🎯 Click "Run Full Demo" or try individual scenarios to see MagicLogger in action!

Explore Features

Why developers love MagicLogger

Everything you need to debug faster, understand deeper, and ship with confidence

🎨

Beautiful by Default

Turn your console into a work of art. Automatic colors, emojis, tables, and formatting that makes debugging a joy.

logger.rainbow('🌈 Colorful logging'); logger.table(data); logger.progress(0.75);
256 ColorsSmart TablesProgress BarsEmoji Support
⚑

Insanely Fast

Faster than console.log with zero overhead. Handle millions of logs without breaking a sweat.

850k ops/sec sync2.5M ops/sec asyncZero dependenciesTree-shakeable
🧠

Intelligent Context

Automatically capture and organize metadata. Track requests, trace errors, and understand your app's behavior.

βœ“Auto Request IDs
βœ“Error Stack Traces
βœ“Performance Metrics
βœ“User Context
πŸ”„

100% Compatible

Drop-in replacement for Winston, Bunyan, or Pino. Switch in seconds, not hours.

Winston API
Bunyan Streams
Pino Speed
Console Fallback
πŸš€

Ship Anywhere

One logger, infinite destinations. Console, files, HTTP, S3, databases - we've got you covered.

ConsoleFileHTTP/SS3MongoDBWebSocketCustom
πŸ›‘οΈ

Production Ready

Battle-tested in production with built-in error handling, retries, and graceful degradation.

βœ“Error Boundaries
βœ“Auto Retry
βœ“Circuit Breaker
βœ“Dead Letter Queue
🌐

Works Everywhere

Node.js, browsers, workers, serverless - if it runs JavaScript, MagicLogger runs on it.

Node.js
Browser
Deno
Workers
React Native
Electron
πŸ“Š

Built-in Analytics

Track performance, monitor errors, and visualize patterns without external tools.

Performance Tracking
Error Rates
Log Volume
Custom Metrics
πŸ”

Powerful Search

Find any log instantly with our built-in search and filtering capabilities.

Full Text Search
Structured Queries
Time Ranges
Saved Filters

Architecture that scales

Simple by default, powerful when you need it

Your ApplicationLogger CoreTransport LayerDestinations

Logger Core

Lightweight orchestration layer that manages everything

12KB minified
Zero dependencies
Extensible architecture
Example
// Logger core - lightweight orchestration
class Logger {
  constructor(options?: LoggerOptions) {
    this.id = options?.id || this.generateId();
    this.transports = options?.transports || [];
    this.context = options?.context || {};
    this.tags = options?.tags || [];
  }
  
  log(level: LogLevel, message: string, meta?: any): void {
    const entry = this.createEntry(level, message, meta);
    this.dispatch(entry);
  }
  
  private dispatch(entry: LogEntry): void {
    this.transports.forEach(transport => {
      if (transport.shouldLog?.(entry) ?? true) {
        transport.log(entry);
      }
    });
  }
}
Explore full architecture

Performance that matters

Benchmarked against the best, optimized for real-world use

Synchronous Performance

Direct logging throughput - no buffering

MagicLogger
850,000/s
Pino
800,000/s
Console.log
200,000/s
Bunyan
120,000/s
Winston
40,000/s

Why is MagicLogger so fast?

Zero heap allocations, monomorphic functions, and a ring buffer architecture designed for V8's JIT compiler. We obsess over every nanosecond.

πŸ’Ύ

Zero Allocations

Ring buffer architecture with object pooling minimizes garbage collection

πŸ”„

Lock-Free Design

Non-blocking operations ensure your app never waits for logging

πŸ“Š

Smart Batching

Intelligent batching reduces I/O operations by up to 90%

βš™οΈ

JIT Optimized

Monomorphic functions and predictable object shapes for maximum V8 performance

Real code, real examples

From quick prototypes to production systems - see how MagicLogger scales with you

🎯Basic Usage

Get started in seconds. No config needed.

import { Logger } from 'magiclogger';

const logger = new Logger();

// It just worksβ„’
logger.info('Server started successfully');
logger.warn('Memory usage is high', { usage: '85%' });
logger.error('Failed to connect', new Error('ECONNREFUSED'));

// Pretty printing built-in
logger.success('βœ… All tests passed!');
logger.rainbow('🌈 Make logging fun again!');

// Structured data? We got you
logger.table([
{ name: 'Alice', role: 'Developer', status: 'Active' },
{ name: 'Bob', role: 'Designer', status: 'Away' }
]);

πŸ’‘ Pro Tips

🎯
Structure Everything

Always pass metadata as the second parameter for better searchability and filtering.

🏷️
Tag Strategically

Use hierarchical tags like 'api', 'api.auth', 'api.auth.login' for powerful filtering.

πŸ‘Ά
Child Loggers Rock

Create scoped loggers for requests, jobs, or features to automatically include context.

⚑
Async When Needed

Enable async mode for high-volume logging. Your app will thank you.

πŸ”
Search Everything

Use structured logging to make every log searchable and actionable.

πŸ“Š
Measure What Matters

Built-in performance tracking means you're always ready to optimize.

Works with everything you use

Drop-in integrations for your favorite frameworks and tools

πŸš‚

Express

Automatic request logging with correlation IDs

app.use(magicLogger.express());
⚑

Next.js

Full-stack logging for pages and API routes

export default withLogger(handler);
βš›οΈ

React

Error boundaries and performance tracking

<LogProvider logger={logger}>
☁️

AWS Lambda

Structured logs for CloudWatch

exports.handler = withLogger(handler);
☸️

Kubernetes

JSON logs with pod metadata

logger.k8s({ pod, namespace });
🐳

Docker

Container-aware logging

logger.docker({ containerId });

Loved by developers worldwide

See what teams are saying about MagicLogger

"MagicLogger transformed how we handle debugging in production. What used to take hours now takes minutes."
πŸ‘¨β€πŸ’»
Senior Developer
Tech Startup β€’ Example Corp
"The performance is incredible. We're handling millions of logs per day without breaking a sweat."
πŸ‘©β€πŸ’»
DevOps Lead
SaaS Platform β€’ Sample Inc
"Finally, a logging library that's both powerful and doesn't bloat our bundle size. Perfect for our React apps."
πŸ‘¨β€πŸ’Ό
Frontend Architect
E-commerce β€’ Demo LLC

Ready to transform your debugging experience?

Join thousands of developers who've made their logs beautiful, meaningful, and actually useful.

πŸ“Š
50M+
Logs Daily
😊
10k+
Happy Devs
βœ…
99.9%
Uptime
πŸ›Ÿ
24/7
Support
Quick Start
$npm install magiclogger
$npx magiclogger init
✨ MagicLogger configured successfully!
πŸ“– Docs: https://docs.magiclog.io
πŸš€ Happy logging!