winston-loggers
基于winston 和 winston-daily-rotate-file 的log包
install
npm i winston-loggers or yarn add winston-loggers
import Logger from 'winston-loggers'
const logger = new Logger.init({
filename: <file path>
})
logger.info('hello world')
基于winston 和 winston-daily-rotate-file 的log包
install
npm i winston-loggers or yarn add winston-loggers
import Logger from 'winston-loggers'
const logger = new Logger.init({
filename: <file path>
})
logger.info('hello world')