@zhike/logl

1.1.2 • Public • Published

Logl

a little way to log

Install

npm install logl --save

How to Use

'use strict';

const http = require('http');
const logl = require('logl');
const logger = logl.getLogger('server');

http.createServer(app).listen(port, function(){
  logger.info('server was running at:', port)
})

Why i write this package?

if you project use pm2, we do not need other log package, because pm2 will according to the io form console to log and save it in Dir .pm2/log/.

functions:

logger.info();
logger.error();
logger.warn();
logger.fatal();
logger.debug();

Readme

Keywords

Package Sidebar

Install

npm i @zhike/logl

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

3.8 kB

Total Files

4

Last publish

Collaborators

  • misakisaysyes
  • smartfe
  • jayi
  • zhiker
  • maintao
  • renxing
  • shenggao