Plugs
Plugs.Logger
Used to log requests.
Use:
defmodule MyRouter do
use Plug.Router
plug Plugs.Logger
plug :match
plug :dispatch
# Rest of router definition
...
endPlugs.HotCodeReload
Used to add hot code reloading to a project, preventing the need to stop, recompile, and start your application to see your changes.
Use:
defmodule MyRouter do
use Plug.Router
plug Plugs.HotCodeReload
plug :match
plug :dispatch
# Rest of router definition
...
end