# lws-log

> Logging feature for lws

Latest version **3.0.0** (published 2024-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install lws-log
pnpm add lws-log
yarn add lws-log
bun add lws-log
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-08-01 |
| First published | 2017-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=12 |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Lloyd Brookes |
| Maintainers | 75lb |
| Keywords | lws, lws-middleware, log |

## Links

- npm: https://www.npmjs.com/package/lws-log
- Repository: https://github.com/lwsjs/log
- Homepage: https://github.com/lwsjs/log#readme
- Issues: https://github.com/lwsjs/log/issues
- npm.io page: https://npm.io/package/lws-log

## Dependencies (2)

- [koa-morgan](https://npm.io/package/koa-morgan.md) ^1.0.1
- [stream-log-stats](https://npm.io/package/stream-log-stats.md) ^3.0.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

- 3.0.0 (latest) — 2024-08-01
- 2.0.0 — 2020-02-09
- 1.0.3 — 2019-06-16
- 1.0.2 — 2019-06-09
- 1.0.1 — 2019-06-06
- 1.0.0 — 2019-06-03
- 0.3.2 — 2017-07-08
- 0.3.1 — 2017-07-07
- 0.3.0 — 2017-06-24
- 0.2.2 — 2017-06-19
- 0.2.1 — 2017-06-11
- 0.2.0 — 2017-06-06
- 0.1.1 — 2017-03-20
- 0.1.0 — 2017-03-19

## README

[![view on npm](https://badgen.net/npm/v/lws-log)](https://www.npmjs.org/package/lws-log)
[![npm module downloads](https://badgen.net/npm/dt/lws-log)](https://www.npmjs.org/package/lws-log)
[![Gihub repo dependents](https://badgen.net/github/dependents-repo/lwsjs/log)](https://github.com/lwsjs/log/network/dependents?dependent_type=REPOSITORY)
[![Gihub package dependents](https://badgen.net/github/dependents-pkg/lwsjs/log)](https://github.com/lwsjs/log/network/dependents?dependent_type=PACKAGE)
[![Node.js CI](https://github.com/lwsjs/log/actions/workflows/node.js.yml/badge.svg)](https://github.com/lwsjs/log/actions/workflows/node.js.yml)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)

# lws-log

Logging middleware for [lws](https://github.com/lwsjs/lws), wrapping [morgan](https://github.com/expressjs/morgan). See [here](https://github.com/lwsjs/local-web-server/wiki/How-to-output-an-access-log) for usage information.

Adds the following options to lws.

```
--log.format, -f string        Possible values: 'stats', 'logstalgia' or anything defined by
                               https://github.com/expressjs/morgan, typically 'dev', 'combined', 'short',
                               'tiny' or a custom format (e.g. ':method -> :url')
```

* * *

&copy; 2016-24 Lloyd Brookes \<75pound@gmail.com\>.

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