--- AnyEvent-MP/MP/LogCatcher.pm 2009/09/06 00:13:51 1.2 +++ AnyEvent-MP/MP/LogCatcher.pm 2009/09/07 18:33:44 1.3 @@ -81,6 +81,19 @@ mon $rport, $lport; } +=item AnyEvent::MP::LogCatcher::catch [$level] + +Starts catching all log messages from all nodes with level C<$level> or +lower. If the C<$level> is C, then stop catching all messages +again. + +Example: start a node that catches all messages (you might have to specify +a suitable profile name). + + aemp run profilename services '[["AnyEvent::MP::LogCatcher::catch",9]]' + +=cut + sub catch { $LOGLEVEL = $_[0]; kil $_, "restart" for values %lport;