1.0.10 • Published 3 years ago

koa-logging-middleware v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Koa-logging-middleware

This is a logging middleware for Koa.js server. It records every request in month-rotated log file in your specialized path.

    const http = require('http');
    const Koa = require("koa");
    const app = new Koa();
    const logger = require('koa-logging-middleware');

    app.use(logger('./log/'));  //fill in the your log path as argument

    app.createServer(app.callback()).listen(80,()=>{
        console.log('server is listening on 80 port')
    })

log format/fields

[date] <client ip> method status url type browser engine os architecture

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago