services.matrix-synapse.log
Default configuration for the loggers used by matrix-synapse and its workers.
The defaults are added with the default priority which means that
these will be merged with additional declarations. These additional
declarations also take precedence over the defaults when declared
with at least normal priority. For instance
the log-level for synapse and its workers can be changed like this:
{ lib, ... }: {
services.matrix-synapse.log.root.level = "WARNING";
}
And another field can be added like this:
{
services.matrix-synapse.log = {
loggers."synapse.http.matrixfederationclient".level = "DEBUG";
};
}
Additionally, the field handlers.journal.SYSLOG_IDENTIFIER will be added to
each log config, i.e.
synapseformatrix-synapse.servicesynapse-<worker name>formatrix-synapse-worker-<worker name>.service
This is only done if this option has a handlers.journal field declared.
To discard all settings declared by this option for each worker and synapse,
lib.mkForce can be used.
To discard all settings declared by this option for a single worker or synapse only, services.matrix-synapse.workers._name_.worker_log_config or services.matrix-synapse.settings.log_config can be used.
- Type
attribute set of (YAML 1.1 value)- Default
{ disable_existing_loggers = false; formatters = { journal_fmt = { format = "%(name)s: [%(request)s] %(message)s"; }; }; handlers = { journal = { class = "systemd.journal.JournalHandler"; formatter = "journal_fmt"; }; }; root = { handlers = [ "journal" ]; level = "INFO"; }; version = 1; }- Declared
- <nixpkgs/nixos/modules/services/matrix/synapse.nix>