el-logger
v1.1.4
Published
## usage
Downloads
242
Readme
logger
usage
npm i el-logger --save
import { Logger } from 'el-logger';
const logger = new Logger({ name: 'my instance' });
const logger = new Logger({ disabled: true });
const logger = new Logger({ sampleRate: 5 });
logger.sample(`some log`); // log max 5 times every second
logger.log(`something`);