@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');