Closed c4710n closed 3 years ago
Plug.RequestId supports print request_id to console with following setting:
Plug.RequestId
config :logger, :console, metadata: [:request_id]
Reference: https://github.com/elixir-plug/plug/blob/3193ab3a8e1973e2fcc37b33417724a45dac857c/lib/plug/request_id.ex#L11
It would be nice if remote_ip support this feature, too:
config :logger, :console, metadata: [:request_id, :remote_ip]
So, here is it. ;)
Excellent idea! Thanks for the contribution.
Plug.RequestId
supports print request_id to console with following setting:Reference: https://github.com/elixir-plug/plug/blob/3193ab3a8e1973e2fcc37b33417724a45dac857c/lib/plug/request_id.ex#L11
It would be nice if remote_ip support this feature, too:
So, here is it. ;)