Author: grobmeier
Date: Tue May 19 05:20:35 2009
New Revision: 776192
URL: http://svn.apache.org/viewvc?rev=776192&view=rev
Log:
added php5 syntax
Modified:
incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutSimple.php
Modified: incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutSimple.php
URL:
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutSimple.php?rev=776192&r1=776191&r2=776192&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutSimple.php
(original)
+++ incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutSimple.php Tue May
19 05:20:35 2009
@@ -26,7 +26,7 @@
* Returns the log statement in a format consisting of the
* <b>level</b>, followed by " - " and then the <b>message</b>.
* For example,
- * <samp> INFO - "A message" </samp>
+ * <samp> INFO - A message </samp>
*
* @version $Revision$
* @package log4php
@@ -36,8 +36,7 @@
/**
* Constructor
*/
- function LoggerLayoutSimple() {
- return;
+ public function __construct() {
}
/**
@@ -49,7 +48,7 @@
* @param LoggerLoggingEvent $event
* @return string
*/
- function format($event) {
+ public function format($event) {
$level = $event->getLevel();
return $level->toString() . ' - ' . $event->getRenderedMessage().
PHP_EOL;
}