From b178ce6f1521aabb4032790ca25c6844e1042d7d Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Thu, 22 Aug 2024 19:00:56 +0200 Subject: [PATCH] solitary: Add missing Synapse log configuration --- .../configuration.nix} | 0 nixos/config/solitary/log_config.yaml | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+) rename nixos/config/{solitary.nix => solitary/configuration.nix} (100%) create mode 100644 nixos/config/solitary/log_config.yaml diff --git a/nixos/config/solitary.nix b/nixos/config/solitary/configuration.nix similarity index 100% rename from nixos/config/solitary.nix rename to nixos/config/solitary/configuration.nix diff --git a/nixos/config/solitary/log_config.yaml b/nixos/config/solitary/log_config.yaml new file mode 100644 index 0000000..275dcf5 --- /dev/null +++ b/nixos/config/solitary/log_config.yaml @@ -0,0 +1,22 @@ +version: 1 +formatters: + journal_fmt: + format: '%(name)s: [%(request)s] %(message)s' + +filters: + context: + (): synapse.util.logcontext.LoggingContextFilter + request: "" + +handlers: + journal: + class: systemd.journal.JournalHandler + formatter: journal_fmt + filters: [context] + SYSLOG_IDENTIFIER: synapse + +root: + level: WARNING + handlers: [journal] + +disable_existing_loggers: False