macoolka-log
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

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)

Package Sidebar

Install

npm i macoolka-log

Weekly Downloads

2

Version

0.3.4

License

MIT

Unpacked Size

5.87 kB

Total Files

8

Last publish

Collaborators

  • fastspeeed