MyNixOS website logo
option

services.matrix-synapse.workers.<name>.worker_log_config

The file for log configuration.

See the python documentation for the schema and the upstream repository for an example.

Declarations
Type
path
Default
{
  _type = "literalMD";
  text = ''
    Path to a yaml file generated from this Nix expression:

    ```
    {
      disable_existing_loggers = false;
      formatters = {
        journal_fmt = {
          format = "%(name)s: [%(request)s] %(message)s";
        };
      };
      handlers = {
        journal = {
          SYSLOG_IDENTIFIER = "synapse-‹name›";
          class = "systemd.journal.JournalHandler";
          formatter = "journal_fmt";
        };
      };
      root = {
        handlers = [
          "journal"
        ];
        level = "INFO";
      };
      version = 1;
    }
    ```
  '';
}