You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by ih...@apache.org on 2011/01/06 17:12:41 UTC

svn commit: r1055928 - /logging/log4php/trunk/src/main/php/layouts/LoggerLayoutPattern.php

Author: ihabunek
Date: Thu Jan  6 16:12:41 2011
New Revision: 1055928

URL: http://svn.apache.org/viewvc?rev=1055928&view=rev
Log:
Fixed a bug in LoggerLayoutPattern where the default conversion pattern would not be used when no custom pattern was provided.

Modified:
    logging/log4php/trunk/src/main/php/layouts/LoggerLayoutPattern.php

Modified: logging/log4php/trunk/src/main/php/layouts/LoggerLayoutPattern.php
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/layouts/LoggerLayoutPattern.php?rev=1055928&r1=1055927&r2=1055928&view=diff
==============================================================================
--- logging/log4php/trunk/src/main/php/layouts/LoggerLayoutPattern.php (original)
+++ logging/log4php/trunk/src/main/php/layouts/LoggerLayoutPattern.php Thu Jan  6 16:12:41 2011
@@ -159,7 +159,7 @@ class LoggerLayoutPattern extends Logger
 	 */
 	public function __construct($pattern = null) {
 		if ($pattern === null) {
-			$this->pattern = self :: DEFAULT_CONVERSION_PATTERN;
+			$this->setConversionPattern(self::DEFAULT_CONVERSION_PATTERN);
 		} else {
 			$this->pattern = $pattern;
 		}