This is especially useful for logging to files
Author: Jordi Boggiano (j.boggiano@seld.be)
Author: Christophe Coevoet (stof@notk.org)
Author: Giulio De Donato (liuggio@gmail.com)
Inheritance: extends Monolog\Formatter\LineFormatter
 public function testDefKernelException()
 {
     $formatter = new StatsDFormatter();
     $message = $formatter->format(array('level_name' => 'DEBUG', 'channel' => 'doctrine', 'message' => 'Notified event "kernel.exception" to listener "Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener::onKernelException"', 'datetime' => new \DateTime(), 'extra' => array(), 'context' => array('foo' => 'bar', 'baz' => 'qux')));
     $assert = array('doctrine.DEBUG.Notified-event', 'doctrine.DEBUG.Notified-event.context.foo.bar', 'doctrine.DEBUG.Notified-event.context.baz.qux');
     $this->assertEquals($assert, $message);
 }