1.1.0 • Published 5 months ago

architect-fastify-access-log v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

architect-fastify-access-log

Access logger for architect fastify

Installation

npm install --save architect-fastify-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'];
1.1.0

5 months ago

1.0.1

6 months ago

1.0.0

8 months ago