Beautiful by Default
Automatic colors for success, error, warning, info, and debug. No configuration needed.
import { log } from 'logluxe';
log.success('Build complete');
log.error('Something failed');
log.warn('Deprecated API');
log.info('Server started');Zero Dependencies
Tiny footprint (~2KB gzipped), no dependencies, fast startup time.
// Just import and use
import { log } from 'logluxe';
// Or patch console directly
import 'logluxe/patch';
console.log('Now with colors!');TypeScript First
Built with TypeScript. Full autocomplete and type safety out of the box.
import type { Logger, LoggerConfig } from 'logluxe';
const config: LoggerConfig = {
level: 'info',
timestamp: true
};
const log: Logger = createLogger(config);Advanced Effects
Gradients, rainbow text, neon effects, and custom themes.
// Gradient text
log.gradient('Welcome!', ['#ff6b6b', '#feca57']);
// Rainbow effect
log.rainbow('🌈 Colorful!');
// Neon glow
log.neon('OPEN 24/7', 'cyan');Performance Timing
Built-in performance measurement with automatic formatting.
log.perf('database-query');
await db.query(sql);
log.perfEnd('database-query');
// ⏱ database-query: 45.23msUniversal
Works in Node.js, Bun, Deno, and browsers with automatic adaptation.
// Automatically detects environment
// Node.js: ANSI codes
// Browser: CSS styling
import { log, env } from 'logluxe';
if (env.isNode) log.info('Running in Node');
if (env.isBrowser) log.info('Running in Browser');Why Logluxe?
❌ Without Logluxe
// Boring, hard to read
console.log('Starting server');
console.log('Error:', error);
console.log('User logged in');✅ With Logluxe
// Beautiful, informative
log.info('Starting server');
log.error('Error:', error);
log.success('User logged in');Quick Start
1
Install
npm install logluxe2
Import
import { log } from 'logluxe';3
Use
log.success('It works!');