From 75c1613b7b7640ab7d339d9a6dfb1d9d69398769 Mon Sep 17 00:00:00 2001 From: Jake Morrison Date: Sun, 7 Jul 2024 19:43:52 -0500 Subject: [PATCH] Use new default_formatter --- mix_tests/config/config.exs | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/mix_tests/config/config.exs b/mix_tests/config/config.exs index eed35f5..fe5fcca 100644 --- a/mix_tests/config/config.exs +++ b/mix_tests/config/config.exs @@ -11,21 +11,13 @@ config :logger, level: :info, utc_log: true -# Configures Elixir's Logger -config :logger, :console, - format: "$time $metadata[$level] $message\n", - metadata: [:request_id, :trace_id, :span_id] - -config :logger_formatter_json_tests, :logger, [ - {:handler, :default, :logger_std_h, - %{ - formatter: - {:logger_formatter_json, - %{ - names: :datadog - }} - }} -] +config :logger, :default_handler, + formatter: { + :logger_formatter_json, + %{ + names: :datadog + } + } # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above.