Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 5fc1ea3

Browse files
author
Michal Vlasák
committed
Update readme
1 parent 4c606a4 commit 5fc1ea3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ app.use(logger.expressError)
114114
All those log messages will contain request and possibly response, error, time from request to response, status code and `user-agent`, `x-deviceid` and `authorization` request headers.
115115

116116
### Request skipping
117-
You might want to omit some requests from logging completely. Right now, there are two ways to do it.
117+
You might want to omit some requests from logging completely. Right now, there are two ways to do it and you can even use both at once.
118118
1) Use `options.ignoredHttpMethods` to define an array of HTTP methods you want to omit. By default all `OPTIONS` requests are ommited. See [options](#options) for details
119119
2) Use `options.skip` method to define custom rules for requests skipping. Set it to a function which accepts an Express's `Request` and returns `boolean`. If the return value is `true`, request (and corresponding response) will not be logged. You might want to use `matchPath` helper to ignore requests based on the [`req.originalUrl` value](https://expressjs.com/en/4x/api.html#req.originalUrl)
120120

0 commit comments

Comments
 (0)