0.3.4 • Published 2 years ago

macoolka-log v0.3.4

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

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)