2.2.1 • Published 7 years ago
@rill/logger v2.2.1
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.66kbInstallation
npm install @rill/loggerExample
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 testto run tests.
Please feel free to create a PR!
2.2.1
7 years ago
2.2.0
8 years ago
2.1.2
8 years ago
2.1.1
9 years ago
2.1.0
9 years ago
1.2.1
9 years ago
1.2.0
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago