Skip to content
Browse files

changed logFile to logFilePath

  • Loading branch information...
1 parent b2f806f commit bd099d51450ed17b7953209b5cc294301d89fc96 Brian Fenton committed Oct 12, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/KLogger.php
View
8 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 @@ public function __construct($logDirectory, $severity)
return;
}
- $this->_logFile = $logDirectory
+ $this->_logFilePath = $logDirectory
. DIRECTORY_SEPARATOR
. 'log_'
. date('Y-m-d')
@@ -153,13 +153,13 @@ public function __construct($logDirectory, $severity)
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 {

0 comments on commit bd099d5

Please sign in to comment.
Something went wrong with that request. Please try again.