Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@zhike/logl

Package Overview
Dependencies
Maintainers
11
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zhike/logl

little way to log file and robust

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
11
Created
Source

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

Keywords

log

FAQs

Package last updated on 26 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts