basho/lager — pull request #247 by lrascao (2014-12-17 15:30:51+00:00)
Title: make trace and stop_trace take the same arguments

starting a filtered trace is easy enough, one would expect the stop_trace to receive the same arguments.
for example, starting a trace:
lager:trace(lager_console_backend, [{module, users_serv}, {function, is_client_update_available}], debug).

to stop the trace, one must issue the following (non-intuitive) command:
lager:stop_trace({{all,[{module,'=',users_serv},{function,'=',is_client_update_available}]},{mask,255},lager_console_backend}).

with this PR the stop_trace now becomes:
lager:stop_trace(lager_console_backend, [{module, users_serv}, {function, is_client_update_available}], debug).