NAME

AnyEvent::MP::LogCatcher - catch all logs from all nodes

SYNOPSIS

   use AnyEvent::MP::LogCatcher;

DESCRIPTION

This relatively simple module attaches itself to the $AnyEvent::Log::COLLECT context on every node and sends all log messages to the node showing interest via the catch function.

No attempt to buffer log messages on connection loss, or to retransmit lost messages, is done.

GLOBALS AND FUNCTIONS

AnyEvent::MP::LogCatcher::catch [$level]

Starts catching all log messages from all nodes with level $level or lower. If the $level is undef, then stop catching all messages again.

Example: start a node that catches all messages (you might have to specify a suitable profile name).

   AE_VERBOSE=9 aemp run profilename services '[["AnyEvent::MP::LogCatcher::catch",9]]'

LOGGING

AnyEvent::MP::LogCatcher logs messages from remote nodes. It logs them into the original logging context and prepends the origin node name and, if the time difference is larger than 1e-4 seconds, also the time difference between local time and origin time.

SEE ALSO

AnyEvent::MP.

AUTHOR

 Marc Lehmann <schmorp@schmorp.de>
 http://home.schmorp.de/