diff --git a/nixng/containers/matrix/synapse/log_config.nix b/nixng/containers/matrix/synapse/log_config.nix index 104ad64..7cb9804 100644 --- a/nixng/containers/matrix/synapse/log_config.nix +++ b/nixng/containers/matrix/synapse/log_config.nix @@ -2,17 +2,12 @@ { version = 1; - formatters.precise.format = "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s"; + formatters.structured.class = "synapse.logging.TerseJsonFormatter"; handlers.console = { class = "logging.StreamHandler"; - formatter = "precise"; + formatter = "structured"; }; loggers."synapse.storage.SQL".level = "INFO"; - root = { - level = "INFO"; - handlers = [ "console" ]; - }; - - disable_existing_loggers = false; + loggers."synapse".level = "INFO"; }