I have an Elixir umbrella. Applications under the umbrella use Logger . I want to add backend ( logger_logstash_backend ) for the application :logger . Therefore, I need to add this as a dependency in the deps function in the mix file.
In the most remote umbrella application mixing file, the deps function documentation says:
The dependencies listed here are available only for this project and cannot be accessed from applications inside the application folder
This means that I have to add a backend module as a dependency for each of the applications under the umbrella. However, this raises several problems:
It is more difficult to display individual applications as separate libraries later.
Individual applications under an umbrella are actually independent of the user module :logger . They are ok with the default backend :console . But I want to have an extra backend only for the prod environment. Thus, it is more connected with cross-applications, in which I have to add a dependency to each application every time.
Do you know any better strategy? What is it?
erlang elixir phoenix-framework
Ahmad ferdous
source share