From d0ca04906af39b6e35d1d3b0aac31ec9d6f615c0 Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:47:06 -0300 Subject: [PATCH] docs: no longer recommend soft-deprecated :logger :console config --- lib/plug/request_id.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plug/request_id.ex b/lib/plug/request_id.ex index 8fd5d6a5..66e1116a 100644 --- a/lib/plug/request_id.ex +++ b/lib/plug/request_id.ex @@ -14,10 +14,10 @@ defmodule Plug.RequestId do The request ID is added to the `Logger` metadata as `:request_id`, and to the response as the configured HTTP response header (see options below). To see the - request ID in your log output, configure your logger backends to include the `:request_id` + request ID in your log output, configure your logger formatter to include the `:request_id` metadata. For example: - config :logger, :console, metadata: [:request_id] + config :logger, :default_formatter, metadata: [:request_id] We recommend to include this metadata configuration in your production configuration file.