diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77fc609..13972d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,8 @@ jobs: include: - otp-version: 24.3 elixir-version: 1.16 + - otp-version: 25 + elixir-version: 1.15.1 - otp-version: 25 elixir-version: 1.16 check-formatted: true diff --git a/lib/logger_json.ex b/lib/logger_json.ex index 03a5918..7751123 100644 --- a/lib/logger_json.ex +++ b/lib/logger_json.ex @@ -67,7 +67,7 @@ defmodule LoggerJSON do * `:conn` - the `Plug.Conn` struct. This is useful when logging HTTP requests and responses, each formatter may use it differently. """ - @log_levels Logger.levels() + @log_levels [:error, :info, :debug, :emergency, :alert, :critical, :warning, :notice] @log_level_strings Enum.map(@log_levels, &to_string/1) @doc """ diff --git a/mix.exs b/mix.exs index 4095bea..fbbac97 100644 --- a/mix.exs +++ b/mix.exs @@ -8,7 +8,7 @@ defmodule LoggerJSON.Mixfile do [ app: :logger_json, version: @version, - elixir: "~> 1.16", + elixir: "~> 1.16 or ~> 1.15.1", elixirc_paths: elixirc_paths(Mix.env()), compilers: [] ++ Mix.compilers(), build_embedded: Mix.env() == :prod,