# @libshin/koa-logger

> Morgan like logger for koa

Latest version **1.0.0** (published 2018-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @libshin/koa-logger
pnpm add @libshin/koa-logger
yarn add @libshin/koa-logger
bun add @libshin/koa-logger
```

## 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.0 |
| Published | 2018-08-31 |
| First published | 2018-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ayc0 |
| Maintainers | ayc0, gandem |

## Links

- npm: https://www.npmjs.com/package/@libshin/koa-logger
- Repository: https://github.com/libshin/koa-logger
- Homepage: https://github.com/libshin/koa-logger#readme
- Issues: https://github.com/libshin/koa-logger/issues
- npm.io page: https://npm.io/package/@libshin/koa-logger

## Dependencies (1)

- [kleur](https://npm.io/package/kleur.md) ^2.0.2

## Recent versions

- 1.0.0 (latest) — 2018-08-31

## README

# TL;DR

Logger for koa

## Installation

### npm

```
$ npm i --save @libshin/koa-logger
```

### yarn

```
$ yarn add @libshin/koa-logger
```

## How to use

```js
const Koa = require("koa");
const logger = require("@libshin/koa-logger");

const app = new Koa();

if (process.env.NODE_ENV !== "production") {
  app.use(logger);
}

app.use(async ctx => {
  ctx.body = "Hello World";
});

const DEFAULT_PORT = 3000;
const PORT = process.env.PORT || DEFAULT_PORT;

app.listen(PORT);
```

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