diff options
author | Brian Fenton <bfenton@ku.edu> | 2010-10-12 00:01:36 -0500 |
---|---|---|
committer | Brian Fenton <bfenton@ku.edu> | 2010-10-12 00:01:36 -0500 |
commit | bd099d51450ed17b7953209b5cc294301d89fc96 (patch) | |
tree | 4b42ab5684be7798e952a7dc870d88c828d2c584 | |
parent | b2f806f2706cfd06f38d41d1293c1efe351a02e6 (diff) | |
download | KLogger-bd099d51450ed17b7953209b5cc294301d89fc96.zip KLogger-bd099d51450ed17b7953209b5cc294301d89fc96.tar.gz KLogger-bd099d51450ed17b7953209b5cc294301d89fc96.tar.bz2 |
changed logFile to logFilePath
-rwxr-xr-x | src/KLogger.php | 8 |
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 {
|