mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-28 19:16:14 +01:00
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:
parent
b7cdd44967
commit
0fef19e47e
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue