# apache-like-accesslog

> A apache-like access log as middleware for express and restify.

Latest version **1.0.4** (published 2018-06-12) · 0 weekly downloads

## Install

```sh
npm install apache-like-accesslog
pnpm add apache-like-accesslog
yarn add apache-like-accesslog
bun add apache-like-accesslog
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-06-12 |
| First published | 2013-06-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Peter Shaw |
| Maintainers | petershaw |
| Keywords | log, access, apache, NCSA Common Log Format, CLF, express, restify |

## Links

- npm: https://www.npmjs.com/package/apache-like-accesslog
- Repository: https://github.com/petershaw/NodeJS-Apache-Like-AccessLog
- Issues: https://github.com/petershaw/NodeJS-Apache-Like-AccessLog/issues
- npm.io page: https://npm.io/package/apache-like-accesslog

## Dependencies (3)

- [sprintf](https://npm.io/package/sprintf.md) ~0.1.1
- [microtime](https://npm.io/package/microtime.md) ^2.1.2
- [date-format-lite](https://npm.io/package/date-format-lite.md) ^0.9.2

## 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
- [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
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2018-06-12
- 1.0.3 — 2017-09-15
- 1.0.2 — 2017-09-15
- 1.0.1 — 2017-08-31
- 1.0.0 — 2017-08-31
- 0.1.0 — 2017-04-07
- 0.0.5 — 2015-02-04
- 0.0.4 — 2014-08-26
- 0.0.3 — 2013-06-20
- 0.0.2 — 2013-06-13
- 0.0.1 — 2013-06-12

## README

apache-like-accesslog
==========
---

 A simple apache-like access log middleware for nodejs.

Description
----------
Accesslog will generate a apache like access.log file that can produce the two main formats: CLF and EXTENDED

Usage
---------

```javascript
var accesslog = require('apache-like-accesslog');
[…express...]
app.use(accesslog.logger);
```

Configuration
---------
Accesslog will produce a log file called "access.log" inside the ./logs directory of your application root. 
You can overwrite this defaults by passing a configuration object into the accesslog.configure function.
```javascript
accesslog.configure({
	format: 'CLF',
	directory: 'logs',
	filename: 'access.log'});
```


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