Switch synapse to a structured log output, easier to machine process

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-07-28 14:34:29 +02:00
parent b7cdd44967
commit 0fef19e47e
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -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";
}