Skip to content

Toggle trace flag

capflam edited this page Sep 9, 2011 · 1 revision

Trace flag can be toggled dynamically by calling yaws_trace:enable_trace/2 and yaws_trace:disable_trace/1:

yaws_trace:enable_trace(Type, Time) -> ok.
yaws_trace:disable_trace(Time) -> ok.

    Type ::= http | traffic
    Time ::= infinity | integer() > 0

You can use Time to toggle the trace flag for a specific period of time. Then, the previous state is restored.

Clone this wiki locally