Observability and relations

The 12-factor framework support in Charmcraft comes with enabled observability and relations depending on the extension. The following table contains links to the relevant Charmcraft documentation for each web app framework:

Logging recommendations

For production deployments, prefer this logging setup:

  • Write application logs to standard output and standard error. Avoid writing logs to local files.

  • Pebble log forwarding is enabled automatically by the logging relation endpoint. Users do not need to configure it manually. See the Pebble documentation.

  • For structured framework server logs, see Structured logging configuration.