0.0.1 • Published 9 years ago

restify-http-log v0.0.1

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

restify-http-log

Restify http log plugins.

Before you start

  • restify ^4.0.2
  • Node 0.12

Install

npm install restify-http-log  

Default usage

var http_log = require('restify-http-log');  
server.pre(http_log());  

Note that it is better to use pre than use

Configuration

Default configuration:

{
	log_dir: process.cwd() + "/log/",
	http_log_dir: 'http',
	color: 'white'
}

explain:

  • log_dir: where you store your log files
  • http_log_dir: the folder you store your http log files in the log folder
  • color: the http log color output in console, see this