Author: ihabunek
Date: Sat Sep 1 09:51:02 2012
New Revision: 1379729
URL: http://svn.apache.org/viewvc?rev=1379729&view=rev
Log:
Replaced "priority" with "level" for consistency.
Modified:
logging/log4php/trunk/src/main/php/LoggerLevel.php
logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php
Modified: logging/log4php/trunk/src/main/php/LoggerLevel.php
URL:
http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/LoggerLevel.php?rev=1379729&r1=1379728&r2=1379729&view=diff
==============================================================================
--- logging/log4php/trunk/src/main/php/LoggerLevel.php (original)
+++ logging/log4php/trunk/src/main/php/LoggerLevel.php Sat Sep 1 09:51:02 2012
@@ -175,7 +175,7 @@ class LoggerLevel {
}
/**
- * Return the syslog equivalent of this priority as an integer.
+ * Return the syslog equivalent of this level as an integer.
* @return integer
*/
public function getSyslogEquivalent() {
Modified: logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php
URL:
http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php?rev=1379729&r1=1379728&r2=1379729&view=diff
==============================================================================
--- logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php (original)
+++ logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php Sat Sep 1
09:51:02 2012
@@ -112,12 +112,12 @@ class LoggerLoggingEvent {
*
* @param string $fqcn name of the caller class.
* @param mixed $logger The {@link Logger} category of this event or the
logger name.
- * @param LoggerLevel $priority The level of this event.
+ * @param LoggerLevel $level The level of this event.
* @param mixed $message The message of this event.
* @param integer $timeStamp the timestamp of this logging event.
* @param Exception $throwable The throwable associated with logging
event
*/
- public function __construct($fqcn, $logger, $priority, $message,
$timeStamp = null, $throwable = null) {
+ public function __construct($fqcn, $logger, LoggerLevel $level,
$message, $timeStamp = null, $throwable = null) {
$this->fqcn = $fqcn;
if($logger instanceof Logger) {
$this->logger = $logger;
@@ -125,7 +125,7 @@ class LoggerLoggingEvent {
} else {
$this->categoryName = strval($logger);
}
- $this->level = $priority;
+ $this->level = $level;
$this->message = $message;
if($timeStamp !== null && is_float($timeStamp)) {
$this->timeStamp = $timeStamp;