# connect-request-data-logger

> A middleware for logging request data.

Latest version **0.0.1** (published 2014-01-01) · 0 weekly downloads

## Install

```sh
npm install connect-request-data-logger
pnpm add connect-request-data-logger
yarn add connect-request-data-logger
bun add connect-request-data-logger
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-01-01 |
| First published | 2014-01-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alex Zlotnik |
| Maintainers | zlotnika |
| Keywords | connect, log, request, query, body, output |

## Links

- npm: https://www.npmjs.com/package/connect-request-data-logger
- Repository: git@github.com:zlotnika/connect-request-data-logger
- Homepage: https://github.com/zlotnika/connect-request-data-logger
- Issues: https://github.com/zlotnika/connect-request-data-logger/issues
- npm.io page: https://npm.io/package/connect-request-data-logger

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-01-01

## README

connect-request-data-logger
===========================

Log the request data. By default, logs *query*, *body*, and *files*. Formatted to look much like the rails request log.

Install
-------

```BASH
npm install connect-request-data-logger
```

Example
-------

```JavaScript
var http = require('http')
var connect = require('connect')
var logger = require('connect-request-data-logger')

var app = connect()

// make sure the objects are added to the request before the request is logged
    .use(connect.query())
    .use(connect.bodyParser())


// you can specify any objects within the request to log
    .use(logger({ delimiter: ', ', keys: ['query', 'body'] }))

    .use(function(req, res){
        res.end('hello world\n');
    })

http.createServer(app).listen(3000);
```

---
_Source: https://npm.io/package/connect-request-data-logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
