I am wondering if we should allow keyword lists in those cases instead but it can be confusing if folks then use the direct Erlang APIs.
On Fri, Apr 28, 2023 at 3:02 PM lostko...@gmail.com <lostkobra...@gmail.com> wrote: > Trying this again as my last 3 answers got deleted: > > For example here: > > config :logger, :default_handler, config: %{ > file: ~c"system.log", > filesync_repeat_interval: 5000, > file_check: 5000, > max_no_bytes: 10_000_000, > max_no_files: 5 > } > > ... as described in > https://hexdocs.pm/logger/main/Logger.html#module-boot-configuration > > Say I want to change the file path for different envs. > > > José Valim schrieb am Donnerstag, 30. März 2023 um 12:34:54 UTC+2: > >> Can you please provide examples of where this may happen? >> >> On Thu, Mar 30, 2023 at 12:08 PM lostko...@gmail.com <lostko...@gmail.com> >> wrote: >> >>> We'll be seeing deeper integration with :logger in the upcoming elixir >>> version, but :logger is using maps for configuration, which don't merge in >>> config, but require changing the whole map for any small change within the >>> map. Afaik maps are meant to become more common for configuration on >>> erlangs end, so are there any plans to bring the merging behaviour of >>> keyword lists to maps as well? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "elixir-lang-core" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to elixir-lang-co...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/elixir-lang-core/754c06e5-62e2-48b1-a58b-7292afb34097n%40googlegroups.com >>> <https://groups.google.com/d/msgid/elixir-lang-core/754c06e5-62e2-48b1-a58b-7292afb34097n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to elixir-lang-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/6346ac29-28aa-4a6a-b4f1-6c7f9aabbc18n%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/6346ac29-28aa-4a6a-b4f1-6c7f9aabbc18n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4KM%2Berar64N6TUufPjEBnT8tRxTx5Mgh7g68MUY7kON-Q%40mail.gmail.com.