macoolka-log
v0.3.4
Published
`mcaoolka-log` is a simple file logger. The use winston
Downloads
2
Maintainers
Readme
macoolka-log
mcaoolka-log
is a simple file logger.
The use winston
Installation (安装)
To install the stable version:
npm install macoolka-log
Data Struct (数据结构)
export interface Log {
readonly info: (a:string) => void
readonly debug: (a:string) => void
readonly warn: (a:string) => void
readonly error: (a:string) => void
}
example
import createLogger from 'macoolka-log'
const logger = createLogger()
logger.info('info')
logger.error('error')
logger.debug('debug')
logger.warn('warn')
License
The MIT License (MIT)