summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Fenton <bfenton@ku.edu>2010-10-12 00:01:36 -0500
committerBrian Fenton <bfenton@ku.edu>2010-10-12 00:01:36 -0500
commitbd099d51450ed17b7953209b5cc294301d89fc96 (patch)
tree4b42ab5684be7798e952a7dc870d88c828d2c584
parentb2f806f2706cfd06f38d41d1293c1efe351a02e6 (diff)
downloadKLogger-bd099d51450ed17b7953209b5cc294301d89fc96.zip
KLogger-bd099d51450ed17b7953209b5cc294301d89fc96.tar.gz
KLogger-bd099d51450ed17b7953209b5cc294301d89fc96.tar.bz2
changed logFile to logFilePath
-rwxr-xr-xsrc/KLogger.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/KLogger.php b/src/KLogger.php
index 400cdee..cf459b7 100755
--- a/src/KLogger.php
+++ b/src/KLogger.php
@@ -52,7 +52,7 @@ class KLogger
* Path to the log file
* @var string
*/
- private $_logFile = null;
+ private $_logFilePath = null;
/**
* Current minimum logging threshold
* @var integer
@@ -142,7 +142,7 @@ class KLogger
return;
}
- $this->_logFile = $logDirectory
+ $this->_logFilePath = $logDirectory
. DIRECTORY_SEPARATOR
. 'log_'
. date('Y-m-d')
@@ -153,13 +153,13 @@ class KLogger
mkdir($logDirectory, self::$_defaultPermissions, true);
}
- if (file_exists($this->_logFile) && !is_writable($this->_logFile)) {
+ if (file_exists($this->_logFilePath) && !is_writable($this->_logFilePath)) {
$this->_logStatus = self::STATUS_OPEN_FAILED;
$this->_messageQueue[] = $this->_messages['writefail'];
return;
}
- if (($this->_fileHandle = fopen($this->_logFile, "a"))) {
+ if (($this->_fileHandle = fopen($this->_logFilePath, "a"))) {
$this->_logStatus = self::STATUS_LOG_OPEN;
$this->_messageQueue[] = $this->_messages['opensuccess'];
} else {