The default one logs to STDOUT and is registered by default. It is not intended to be used for production. There is also an :ref:`slf4j` event handler available in the 'akka-slf4j' module.
You can also use one of the direct methods (for a bit better performance):
..code-block:: scala
EventHandler.error(exception, this, message)
EventHandler.error(this, message)
EventHandler.warning(this, message)
EventHandler.info(this, message)
EventHandler.debug(this, message)
The event handler allows you to send an arbitrary object to the handler which you can handle in your event handler listener. The default listener prints it's toString String out to STDOUT.
..code-block:: scala
EventHandler.notify(anyRef)
The methods take a call-by-name parameter for the message to avoid object allocation and execution if level is disabled. The following formatting function will not be evaluated if level is INFO, WARNING, or ERROR.
..code-block:: scala
EventHandler.debug(this, "Processing took %s ms".format(duration))
From Java you need to nest the call in an if statement to achieve the same thing.