koa-logtown

2.4.5 • Public • Published

koa-logtown

Development style logger middleware for Koa that leverages logtown.

The middleware is very similar to koa-logger, but console.log was replaced with logtown functions calls.

<-- GET /
--> GET / 200 835ms 746b
<-- GET /
--> GET / 200 960ms 1.9kb
<-- GET /users
--> GET /users 200 357ms 922b
<-- GET /users?page=2
--> GET /users?page=2 200 466ms 4.66kb

Installation

npm install koa-logtown logtown --save

or

yarn add koa-logtown logtown

Usage

const koaLogger = require('koa-logtown');
const Koa = require('koa');
 
const app = new Koa();
app.use(koaLogger());

License

koa-logtown is released under the MIT license.

Donate

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i koa-logtown

    Weekly Downloads

    1

    Version

    2.4.5

    License

    MIT

    Unpacked Size

    5.62 kB

    Total Files

    5

    Last publish

    Collaborators

    • hunterman