Make accesslogs.logTheRoundTrip async to get lost performance
This commit is contained in:
parent
5b3bba8f6e
commit
c09febfffc
4 changed files with 70 additions and 9 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue