@matejbransky/logger
v1.0.0-alpha.8
Published
Proxy based logger which can change log level during runtime. It was inspired by the package [`loglevel`](https://github.com/pimterry/loglevel).
Downloads
4
Readme
@matejbransky/logger
Proxy based logger which can change log level during runtime. It was inspired by the package loglevel
.
Usage
npm install @matejbransky/logger
import { loggerFactory } from '@matejbransky/logger';
const log = loggerFactory.getLogger('foobar');
log.info('Hello World!'); // => prints [foobar][info]: Hello World!
API
Similar to loglevel docs. Differences are covered in tests.
Missing features
- log levels are not stored in local storage