mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 22:23:48 +03:00
b183aec83c
* Allow log sampling configuration from Caddyfile * Add log sampling adapt tests
45 lines
No EOL
523 B
Text
45 lines
No EOL
523 B
Text
:80 {
|
|
log {
|
|
sampling {
|
|
interval 300
|
|
first 50
|
|
thereafter 40
|
|
}
|
|
}
|
|
}
|
|
----------
|
|
{
|
|
"logging": {
|
|
"logs": {
|
|
"default": {
|
|
"exclude": [
|
|
"http.log.access.log0"
|
|
]
|
|
},
|
|
"log0": {
|
|
"sampling": {
|
|
"interval": 300,
|
|
"first": 50,
|
|
"thereafter": 40
|
|
},
|
|
"include": [
|
|
"http.log.access.log0"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"srv0": {
|
|
"listen": [
|
|
":80"
|
|
],
|
|
"logs": {
|
|
"default_logger_name": "log0"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |