1.1.2 • Published 7 years ago

logl v1.1.2

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

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();
1.1.2

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago