View Source hackney_trace (hackney v1.23.0)
Summary
Functions
stop tracing
start tracing start tracing at level Level and send the result either to the file File, the port Port or to a trace handler.
change the trace level when tracing has already started.
Types
Functions
-spec disable() -> ok.
-spec enable(trace_level(), trace_type()) -> ok.
start tracing start tracing at level Level and send the result either to the file File, the port Port or to a trace handler.
Note: that it starts a tracer server. When Destination is the atom io (or the tuple {io, Verbosity}), %% all (printable) inets trace events (trace_ts events which has %% Severity within Limit) will be written to stdout using io:format.-spec set_level(trace_level()) -> ok | {error, term()}.