add log directive to simple example
[webi-installers/.git] / caddy / README.md
index db52f692e523bb257e4a9fc2661bb2deca0150e7..6016a1cc55199728d612f9fa3fcd72516d84cdd9 100644 (file)
@@ -36,6 +36,12 @@ www.example.com {
 }
 
 example.com {
+    # log to stdout, which is captured by journalctl
+    log {
+        output stdout
+        format console
+    }
+
     # turn on standard streaming compression
     encode gzip zstd