MyNixOS website logo
option

services.matrix-synapse.settings.log_config

The file that holds the logging configuration.

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";
          class = "systemd.journal.JournalHandler";
          formatter = "journal_fmt";
        };
      };
      root = {
        handlers = [
          "journal"
        ];
        level = "INFO";
      };
      version = 1;
    }
    ```
  '';
}