Plug Plug.Logger isn't in lib/endpoint.ex, but the basic request information is still output to the console

I want to know where plug Plug.Logger is added in a phoenix project created via mix phx.new.

Thanks! :smiley:

Hi @zhangzhen, since phoenix 1.5 this is slightly different, instead of Plug.Logger, you have in the endpoint a Plug.Telemetry that emits telemetry events, logged by Phoenix.Logger.

2 Likes