Skip to content

Cryptoteep/logease

Repository files navigation

logease

A lightweight, zero-dependency structured logging library for Node.js and the browser.

Features

  • Structured JSON output with configurable levels (trace, debug, info, warn, error)
  • Tiny footprint (~2 KB gzipped), no runtime dependencies
  • Pluggable transports (console, file, HTTP) via a simple middleware API
  • Child loggers with bound context for request-scoped tracing
  • Works in Node.js >= 18 and evergreen browsers

Install

npm install logease

Quick start

import { createLogger } from 'logease';

const log = createLogger({ level: 'info' });
log.info('server started', { port: 3000 });

License

MIT © Cryptoteep

About

Beautiful, zero-dependency structured logging for Node.js & TypeScript. Tiny, colorful, typed, extensible.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors