@luminable/logger
v1.3.0
Published
Idiomatic logger API supporting custom formatting and transports
Readme
@luminable/logger
Idiomatic logger API supporting custom formatting and transports.
Highlights
- 🔥 Zero dependencies
- 🗜 Tidy and compact
- 💻 Works in browser
- 📦 Standard implementations in the box
Usage
const logger = new ConsoleLogger();
// Logs with level "below" warn (debug, info) will not be emitted
logger.level = 'warn';
logger.info('Something happened, nothing to see here');
logger.warn('User account has been suspended', { accountId: '123' });