From 82e745efc7748c51f284320db9a5c1b31f21250b Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Thu, 21 Nov 2024 10:17:44 +0100 Subject: [PATCH] Reference full module name in config to enable copy & paste The previous version would crash once you do the first log as `Basic` without aliases is an unknown module. For setup/configuration docs I think this is better, so people can easily copy & paste it :) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7183566..09954e5 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ config :logger, :default_handler, or during runtime: ```elixir -:logger.update_handler_config(:default, :formatter, {Basic, %{metadata: {:all_except, [:conn]}}}) +:logger.update_handler_config(:default, :formatter, {LoggerJSON.Formatters.Basic, %{metadata: {:all_except, [:conn]}}}) ``` ## Docs