MyNixOS website logo
option

services.caddy.virtualHosts.<name>.logFormat

Configuration for HTTP request logging (also known as access logs). See https://caddyserver.com/docs/caddyfile/directives/log#log for details.

Declarations
Type
strings concatenated with "\n"
Default
''
  output file ''${config.services.caddy.logDir}/access-''${hostName}.log
''
Example
mkForce ''
  output discard
'';