An utility for temporarly changing verbosity level for Erlang modules.
Logpick allows you to temporarily increase the verbosity level for given modules. The "temporarily" part is useful when you do it in the production and you do not want to overload log service by forgetting to reset verbosityafter work is done.
Logpick API is quite simple, just call logpick:set_module_level/3
with module
name, requested level and specification of when to reset verbosity to it's
original value:
logpick:set_module_level(foo, debug, {counter, 1}).
Supported types are:
{counter, N}
which will allow at mostN
events to be logged{time, {N, Unit}}
which will reset verbosity afterN
units of time (Unit
is atom as specified byerlang:time_unit/0
)