File logging in production
Closed this issue · 1 comments
sheshankkodam commented
When working locally with the configuration below, file logging works. However, when created a release using MIX_ENV=test mix release --env=prod
and running the application using _build/dev/rel/hutt/bin/hutt start
command file logging does not work
Config.exs
-----------
config :logger, :hutt,
format: "$date $time $metadata[$level] $message\n",
path: "log/hutt.log",
level: :info`
sheshankkodam commented
The logs worked after updating `config/test.exs' with following changes
config :logger, :console, format: "[$level] $message\n"