Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add :all and :none for Logger.level/0 (#13513)
According to https://www.erlang.org/doc/man/logger#get_primary_config-0 and https://www.erlang.org/doc/man/logger#type-primary_config, returned type for `:logger.get_primary_config` is: ```erlang #{level => level() | all | none, metadata => metadata(), filter_default => log | stop, filters => [{filter_id(), filter()}]} ``` Thus, inside `Logger.level/0` fun, `level` could also be `all` and `none` when calling: ```elixir %{level: level} = :logger.get_primary_config() ```
- Loading branch information