0.2.0 • Published 7 years ago

justows.plugin.http.log v0.2.0

Weekly downloads
6
License
-
Repository
bitbucket
Last release
7 years ago

justows.plugin.http.log

Plugin for generating a log entry for every HTTP request.

Developed in Dogma, compiled to JavaScript.

Engineered in Valencia, Spain, EU by Justo WebServices.

Description

This plugin provides a pre action for registering the start timestamp and a post action for issuing a log entry when finished.

Use

The plugin returns a function which returns the plugin metadata:

function plugin(opts) : object
  • opts:
    • resource (bool). Must the resource path be logged? Default: false.

Example:

http: {
  plugins: [
    require("justows.plugin.http.log")({resource: true})
  ],

  ...
}
0.2.0

7 years ago

0.1.0

7 years ago