@yqg/logger
v1.4.2
Published
基于 bunyan & mkdirp,使用方法如下:
Downloads
35
Maintainers
Keywords
Readme
@yqg/logger
基于 bunyan & mkdirp,使用方法如下:
import createLogger, {initRootLogger} from '@yqg/logger';
// must init before creaeLogger
initRootLogger({debug: true, logName: 'log', logDir: './log'});
const logger = createLogger('module');
logger.info('Hello');