Make accesslogs.logTheRoundTrip async to get lost performance

This commit is contained in:
ryarnyah 2018-05-23 16:46:04 +02:00 committed by Traefiker Bot
parent 5b3bba8f6e
commit c09febfffc
4 changed files with 70 additions and 9 deletions

View file

@ -124,6 +124,20 @@ filePath = "/path/to/access.log"
format = "json"
```
To write the logs in async, specify `bufferingSize` as the format (must be >0):
```toml
[accessLog]
filePath = "/path/to/access.log"
# Buffering Size
#
# Optional
# Default: 0
#
# Number of access log lines to process in a buffered way.
#
bufferingSize = 100
```
To filter logs you can specify a set of filters which are logically "OR-connected". Thus, specifying multiple filters will keep more access logs than specifying only one:
```toml
[accessLog]