๐
Works Everywhere
Node.js, Bun, Deno, browsers, React, Next.js, edge runtimes โ one API everywhere.
One API for Node, edge, serverless, browsers, and React โ with global singleton config, structured output, and safe redaction.
import { createLogger } from '@nextrush/log';
const log = createLogger('MyApp');
log.info('Server started', { port: 3000 });
log.error('Failed to connect', new Error('timeout'));Development โ pretty, colorful:
10:30:00 INFO [MyApp] Server started { port: 3000 }
10:30:01 ERROR [MyApp] Failed to connect Error: timeoutProduction โ JSON for aggregators:
{"timestamp":"...","level":"info","message":"Server started","data":{"port":3000}}