I have an app using Logger to log in it own file like log/0.2.1_debug.log
.
But when i move this app under an umbrella project, the version number i get is the umbrella project’s version number (version 0.1.0 instead of 0.2.1).
How can i get the version of a subapp if I launch from the root of the umbrella?
Logger config is:
config :logger,
level: :debug,
backends: [:console,
{LoggerFileBackend, :debug_log},
{LoggerFileBackend, :error_log}]
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [:request_id]
config :logger, :debug_log,
format: {Utils.LogFormatter, :format_debug},
metadata: [:module, :sessionId],
path: "log/#{Mix.Project.config[:version]}_debug.log",
level: :debug
config :logger, :error_log,
format: {Utils.LogFormatter, :format_error},
metadata: [:module, :sessionId, :function, :line],
path: "log/#{Mix.Project.config[:version]}_error.log",
level: :error