Referenced your post and the Logger docs for my use case.
I am trying to configure my project to use logger_std_h
similar to hkrutzer. The application compiles/runs but there is no log file created. The logs only output to console. Wondering if either of you were successful in getting OTP handlers working
# config.exs
config :logger,
backends: [:console]
config :logger, :console,
level: :info
config :runnable, :logger,
[
{:handler, :default, :logger_std_h, %{level: :info, file: "test.log"}}
]
# runnable.exs
def start(_type, _args) do
:logger.add_handlers(:runnable)
Logger.info "Starting application..."
children = [
Greeting
]
Supervisor.start_link(children, strategy: :one_for_one)
end