level, followed by " - " and then the message.
* For example,
* INFO - "A message"
*
* @author Marco Vassura
* @version $Revision: 635069 $
* @package log4php
* @subpackage layouts
*/
class LoggerLayoutSimple extends LoggerLayout {
/**
* Constructor
*/
function LoggerLayoutSimple()
{
return;
}
function activateOptions()
{
return;
}
/**
* Returns the log statement in a format consisting of the
* level, followed by " - " and then the
* message. For example,
* INFO - "A message"
*
* @param LoggerLoggingEvent $event
* @return string
*/
function format($event)
{
$level = $event->getLevel();
return $level->toString() . ' - ' . $event->getRenderedMessage(). LOG4PHP_LINE_SEP;
}
}