onkel-dirtus / logger_file_backend

MIT License
307 stars 128 forks source link

Warnings when compiling on elixir 1.12.1 #71

Open martinos opened 3 years ago

martinos commented 3 years ago

When I compile my application I get the following error when compiling the logger_file_backend application.

==> logger_file_backend
Compiling 1 file (.ex)
warning: Logger.compare_levels/2 defined in application :logger is used by the current application but the current application does not depend on :logger. To fix this, you must do one of:

  1. If :logger is part of Erlang/Elixir, you must include it under :extra_applications inside "def application" in your mix.exs

  2. If :logger is a dependency, make sure it is listed under "def deps" in your mix.exs

  3. In case you don't want to add a requirement to :logger, you may optionally skip this warning by adding [xref: [exclude: [Logger]]] to your "def project" in mix.exs

  lib/logger_file_backend.ex:36: LoggerFileBackend.handle_event/2

I think that the library should have :logger added to the extra_applications options in order to fix this.