Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bimedia-fr/architect-access-log
provide access logs to architect application using an express/restify middleware
https://github.com/bimedia-fr/architect-access-log
Last synced: about 2 months ago
JSON representation
provide access logs to architect application using an express/restify middleware
- Host: GitHub
- URL: https://github.com/bimedia-fr/architect-access-log
- Owner: bimedia-fr
- License: apache-2.0
- Created: 2015-12-04T17:25:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T13:01:57.000Z (8 months ago)
- Last Synced: 2024-09-30T09:06:17.117Z (3 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
architect-access-log
=================Provide access log to an architect application using a `rest` plugin.
### Installation
```sh
npm install --save architect-access-log
```### Usage
Boot [Architect](https://github.com/c9/architect) :
```js
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` :
```js
module.exports = [{
packagePath: "architect-access-log",
fmt: 'url=":url" method=":method" statusCode=":statusCode" delta=":delta" ip=":ip"'
}, './services'];
```