Moving phoenix logs to stdout

# Configures Elixir's Logger
config :logger, :console,
  path: 'some_path'

We want to move the application Kubernetes hence we are also moving the logs from file to stdout.
But I don’t how to do that like moving the logs to stdout instead of logging to a file.

removing path: 'some_path' from config should work

But Logger.Console do not support :path option. Are you sure that this is your config? Because if you are using :console backend in Logger then it should output to the stdout by default.

1 Like

My guess is that whatever is running the elixir app is taking in the stdout from it and that’s what is saving to a file, not elixir itself since the console backend doesn’t log to file. So the solution in that case would be to find how that’s happening and change it there.