Miss any of our Open RFC calls?Watch the recordings here! »

@rill/logger

2.2.1 • Public • Published

Rill
@rill/logger
API stability Standard NPM version Downloads Gitter Chat

Isomorphic request logging for Rill. With colors!

<-- 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 @rill/logger

Example

const app = require('rill')()
const logger = require('@rill/logger')
 
app.use(logger())

Options

{
  group: false // If true, will use console.group instead of log. (Shims in node)
}

Notes

Recommended that you .use() this middleware near the top to "wrap" all subsequent middleware.

Contributions

  • Use npm test to run tests.

Please feel free to create a PR!

Install

npm i @rill/logger

DownloadsWeekly Downloads

1

Version

2.2.1

License

MIT

Unpacked Size

10.2 kB

Total Files

5

Last publish

Collaborators

  • avatar