[V2] errors directive for V2? Store errors from fastcgi

1. Caddy version (caddy version):


I am currently wondering the same thing, while I am migrating from Caddy 1 to 2.
How do I log errors from fastcgi scripts (and possibly other handlers) to a specific file?

The migration guide unfortunately only deals with the error page handling of the errors directive, but not the logging.

All errors are printed to stdout by default. Currently, changing the log output location for errors (or anything that isn’t access logs) isn’t yet supported in the Caddyfile but can be done using JSON config.