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

1. Caddy version (caddy version):

2.0.0

bump
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.

This topic was automatically closed after 30 days. New replies are no longer allowed.