How to output log about request information with httpoison and hackney?

What I want to do

I want to output log about request information with httpoison and hackney.
I found :hackney_trace.enable that can output to standard output.
enable function has two arguments, you cass pass function to second argument, so I tried like this below and it did not work.

defmodule Hoge do
  require Logger

  def request(method, args) do
    :hackney_trace.enable(:max, {log_output()})
    HTTPoison |> apply(method, args ++ default_args())
    :hackney_trace.disable()
  end

  def log_output(args)
    Logger.info(inspect(args))
  end
end

If someone has passed it function as second argument, it will be glad if you let me see sample code.

Thanks! :smiley: