architect-access-log

1.3.0 • Public • Published

architect-access-log

Provide access log to an architect application using a rest plugin.

Installation

npm install --save architect-access-log

Usage

Boot Architect :

var path = require('path');
var architect = require("architect");
 
var config = architect.loadConfig(path.join(__dirname, "config.js"));
 
architect.createApp(config, function (err, app) {
    if (err) {
        throw err;
    }
    console.log("app ready");
});

Configure logging with Architect config.js :

module.exports = [{
    packagePath: "architect-access-log",
    fmt: 'url=":url" method=":method" statusCode=":statusCode" delta=":delta" ip=":ip"'
}, './services'];

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    203
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.0
    203
  • 1.2.0
    0
  • 1.1.0
    0
  • 1.0.2
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i architect-access-log

Weekly Downloads

203

Version

1.3.0

License

Apache-2.0

Unpacked Size

14.1 kB

Total Files

5

Last publish

Collaborators

  • echestier
  • vtricoire
  • jcreigno