restify-http-log

0.0.1 • Public • Published

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

/restify-http-log/

    Package Sidebar

    Install

    npm i restify-http-log

    Weekly Downloads

    0

    Version

    0.0.1

    License

    ISC

    Last publish

    Collaborators

    • blackwhite