summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt/log_roll_days.txt
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2020-05-14 17:53:28 -0400
committerGitHub <noreply@github.com>2020-05-14 17:53:28 -0400
commitbde3823b76b457a933e684cd096ca84fc6378997 (patch)
tree13310a50f98a15ac1a15ddcec9746eab87d057ae /caddytest/integration/caddyfile_adapt/log_roll_days.txt
parent4df56c77e380cdfec5e23862f7faa8bd843022e6 (diff)
caddytest: Refactor Caddyfile adapt tests to separate files (#3398)
Diffstat (limited to 'caddytest/integration/caddyfile_adapt/log_roll_days.txt')
-rw-r--r--caddytest/integration/caddyfile_adapt/log_roll_days.txt47
1 files changed, 47 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/log_roll_days.txt b/caddytest/integration/caddyfile_adapt/log_roll_days.txt
new file mode 100644
index 0000000..2d146f9
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/log_roll_days.txt
@@ -0,0 +1,47 @@
+:80
+
+log {
+ output file /var/log/access.log {
+ roll_size 1gb
+ roll_keep 5
+ roll_keep_for 90d
+ }
+}
+----------
+{
+ "logging": {
+ "logs": {
+ "default": {
+ "exclude": [
+ "http.log.access.log0"
+ ]
+ },
+ "log0": {
+ "writer": {
+ "filename": "/var/log/access.log",
+ "output": "file",
+ "roll_keep": 5,
+ "roll_keep_days": 90,
+ "roll_size_mb": 954
+ },
+ "include": [
+ "http.log.access.log0"
+ ]
+ }
+ }
+ },
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":80"
+ ],
+ "logs": {
+ "default_logger_name": "log0"
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file