From 8a540c45ecfb30eebe4c9873dbe6c8bab45a640b Mon Sep 17 00:00:00 2001 From: reivilibre Date: Tue, 8 Mar 2022 15:38:01 +0000 Subject: deploy: b1989ced00cc0bc6214bfd1a393c7e8f8eda660c --- latest/structured_logging.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'latest/structured_logging.html') diff --git a/latest/structured_logging.html b/latest/structured_logging.html index 6d442a077f..4fbc0c093d 100644 --- a/latest/structured_logging.html +++ b/latest/structured_logging.html @@ -252,13 +252,11 @@ loggers: with the SQL layer at 'WARNING', and will log JSON formatted messages to a remote endpoint at 10.1.2.3:9999.

Upgrading from legacy structured logging configuration

-

Versions of Synapse prior to v1.23.0 included a custom structured logging -configuration which is deprecated. It used a structured: true flag and -configured drains instead of handlers and formatters.

-

Synapse currently automatically converts the old configuration to the new -configuration, but this will be removed in a future version of Synapse. The -following reference can be used to update your configuration. Based on the drain -type, we can pick a new handler:

+

Versions of Synapse prior to v1.54.0 automatically converted the legacy +structured logging configuration, which was deprecated in v1.23.0, to the standard +library logging configuration.

+

The following reference can be used to update your configuration. Based on the +drain type, we can pick a new handler:

  1. For a type of console, console_json, or console_json_terse: a handler with a class of logging.StreamHandler and a stream of ext://sys.stdout -- cgit 1.5.1