wkl

winston-koa-logger

Winston middleware logger for Koa based on express-winston.

Showing:

Popularity

Downloads/wk

535

GitHub Stars

5

Maintenance

Last Commit

5yrs ago

Contributors

2

Package

Dependencies

1

Size (min+gzip)

1.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

winston-koa-logger

Winston middleware logger for Koa based on express-winston.

Instalation

npm install winston-koa-logger

Usage

You need to pass a instance of winston to middleware.

const koa = require('koa');
const logger = require('./logger'); // Winston instance.
const winstonKoaLogger = require('winston-koa-logger');

const app = koa();

app.use(winstonKoaLogger(logger));

app.use(function *() {
  this.body = 'Hello World';
});

app.listen(3000);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100