Rename Log class to DebugLog to avoid confusion
Rename Log class to DebugLog to avoid confusion

--- /dev/null
+++ b/include/DebugLog.class.php
@@ -1,1 +1,269 @@
-
+<?php
+/**
+ * GitPHP DebugLog
+ *
+ * Debug Logging class
+ *
+ * @author Christopher Han <xiphux@gmail.com>
+ * @copyright Copyright (c) 2010 Christopher Han
+ * @package GitPHP
+ */
+
+/**
+ * Debug logging class
+ *
+ * @package GitPHP
+ */
+class GitPHP_DebugLog
+{
+	/**
+	 * instance
+	 *
+	 * Stores the singleton instance
+	 *
+	 * @access protected
+	 * @static
+	 */
+	protected static $instance;
+
+	/**
+	 * enabled
+	 *
+	 * Stores whether logging is enabled
+	 *
+	 * @access protected
+	 */
+	protected $enabled = false;
+
+	/**
+	 * benchmark
+	 *
+	 * Stores whether benchmarking is enabled
+	 *
+	 * @access protected
+	 */
+	protected $benchmark = false;
+
+	/**
+	 * startTime
+	 *
+	 * Stores the starting instant
+	 *
+	 * @access protected
+	 */
+	protected $startTime;
+
+	/**
+	 * startMem
+	 *
+	 * Stores the starting memory
+	 *
+	 * @access protected
+	 */
+	protected $startMem;
+
+	/**
+	 * entries
+	 *
+	 * Stores the log entries
+	 *
+	 * @access protected
+	 */
+	protected $entries = array();
+
+	/**
+	 * GetInstance
+	 *
+	 * Returns the singleton instance
+	 *
+	 * @access public
+	 * @static
+	 * @return mixed instance of logging clas
+	 */
+	public static function GetInstance()
+	{
+		if (!self::$instance) {
+			$config = GitPHP_Config::GetInstance();
+			self::$instance = new GitPHP_DebugLog($config->GetValue('debug', false), $config->GetValue('benchmark', false));
+		}
+
+		return self::$instance;
+	}
+
+	/**
+	 * DestroyInstance
+	 *
+	 * Releases the singleton instance
+	 *
+	 * @access public
+	 * @static
+	 */
+	public static function DestroyInstance()
+	{
+		self::$instance = null;
+	}
+
+	/**
+	 * __construct
+	 *
+	 * Constructor
+	 *
+	 * @access private
+	 * @return Log object
+	 */
+	private function __construct($enabled = false, $benchmark = false)
+	{
+		$this->startTime = microtime(true);
+		$this->startMem = memory_get_usage();
+
+		$this->enabled = $enabled;
+		$this->benchmark = $benchmark;
+	}
+
+	/**
+	 * SetStartTime
+	 *
+	 * Sets start time
+	 *
+	 * @access public
+	 * @param float $start starting microtime
+	 */
+	public function SetStartTime($start)
+	{
+		$this->startTime = $start;
+	}
+
+	/**
+	 * SetStartMemory
+	 *
+	 * Sets start memory
+	 *
+	 * @access public
+	 * @param integer $start starting memory
+	 */
+	public function SetStartMemory($start)
+	{
+		$this->startMem = $start;
+	}
+
+	/**
+	 * Log
+	 *
+	 * Log an entry
+	 *
+	 * @access public
+	 * @param string $message message to log
+	 */
+	public function Log($message)
+	{
+		if (!$this->enabled)
+			return;
+
+		$entry = array();
+		
+		if ($this->benchmark) {
+			$entry['time'] = microtime(true);
+			$entry['mem'] = memory_get_usage();
+		}
+
+		$entry['msg'] = $message;
+		$this->entries[] = $entry;
+	}
+
+	/**
+	 * GetEnabled
+	 *
+	 * Gets whether logging is enabled
+	 *
+	 * @access public
+	 * @return boolean true if logging is enabled
+	 */
+	public function GetEnabled()
+	{
+		return $this->enabled;
+	}
+
+	/**
+	 * SetEnabled
+	 *
+	 * Sets whether logging is enabled
+	 *
+	 * @access public
+	 * @param boolean $enable true if logging is enabled
+	 */
+	public function SetEnabled($enable)
+	{
+		$this->enabled = $enable;
+	}
+
+	/**
+	 * GetBenchmark
+	 *
+	 * Gets whether benchmarking is enabled
+	 *
+	 * @access public
+	 * @return boolean true if benchmarking is enabled
+	 */
+	public function GetBenchmark()
+	{
+		return $this->benchmark;
+	}
+
+	/**
+	 * SetBenchmark
+	 *
+	 * Sets whether benchmarking is enabled
+	 *
+	 * @access public
+	 * @param boolean $bench true if benchmarking is enabled
+	 */
+	public function SetBenchmark($bench)
+	{
+		$this->benchmark = $bench;
+	}
+
+	/**
+	 * GetEntries
+	 *
+	 * Calculates times and gets log entries
+	 *
+	 * @access public
+	 * @return array log entries
+	 */
+	public function GetEntries()
+	{
+		$data = array();
+	
+		if ($this->enabled) {
+
+			if ($this->benchmark) {
+				$endTime = microtime(true);
+				$endMem = memory_get_usage();
+
+				$lastTime = $this->startTime;
+				$lastMem = $this->startMem;
+
+				$data[] = 'DEBUG: [' . $this->startTime . '] [' . $this->startMem . ' bytes] Start';
+
+			}
+
+			foreach ($this->entries as $entry) {
+				if ($this->benchmark) {
+					$data[] = 'DEBUG: [' . $entry['time'] . '] [' . ($entry['time'] - $this->startTime) . ' sec since start] [' . ($entry['time'] - $lastTime) . ' sec since last] [' . $entry['mem'] . ' bytes] [' . ($entry['mem'] - $this->startMem) . ' bytes since start] [' . ($entry['mem'] - $lastMem) . ' bytes since last] ' . $entry['msg'];
+					$lastTime = $entry['time'];
+					$lastMem = $entry['mem'];
+				} else {
+					$data[] = 'DEBUG: ' . $entry['msg'];
+				}
+			}
+
+			if ($this->benchmark) {
+				$data[] = 'DEBUG: [' . $endTime . '] [' . ($endTime - $this->startTime) . ' sec since start] [' . ($endTime - $lastTime) . ' sec since last] [' . $endMem . ' bytes] [' . ($endMem - $this->startMem) . ' bytes since start] [' . ($endMem - $lastMem) . ' bytes since last] End';
+			}
+		}
+
+		return $data;
+	}
+
+}
+

file:a/include/Log.class.php (deleted)
--- a/include/Log.class.php
+++ /dev/null
@@ -1,269 +1,1 @@
-<?php
-/**
- * GitPHP Log
- *
- * Logging class
- *
- * @author Christopher Han <xiphux@gmail.com>
- * @copyright Copyright (c) 2010 Christopher Han
- * @package GitPHP
- */
 
-/**
- * Logging class
- *
- * @package GitPHP
- */
-class GitPHP_Log
-{
-	/**
-	 * instance
-	 *
-	 * Stores the singleton instance
-	 *
-	 * @access protected
-	 * @static
-	 */
-	protected static $instance;
-
-	/**
-	 * enabled
-	 *
-	 * Stores whether logging is enabled
-	 *
-	 * @access protected
-	 */
-	protected $enabled = false;
-
-	/**
-	 * benchmark
-	 *
-	 * Stores whether benchmarking is enabled
-	 *
-	 * @access protected
-	 */
-	protected $benchmark = false;
-
-	/**
-	 * startTime
-	 *
-	 * Stores the starting instant
-	 *
-	 * @access protected
-	 */
-	protected $startTime;
-
-	/**
-	 * startMem
-	 *
-	 * Stores the starting memory
-	 *
-	 * @access protected
-	 */
-	protected $startMem;
-
-	/**
-	 * entries
-	 *
-	 * Stores the log entries
-	 *
-	 * @access protected
-	 */
-	protected $entries = array();
-
-	/**
-	 * GetInstance
-	 *
-	 * Returns the singleton instance
-	 *
-	 * @access public
-	 * @static
-	 * @return mixed instance of logging clas
-	 */
-	public static function GetInstance()
-	{
-		if (!self::$instance) {
-			$config = GitPHP_Config::GetInstance();
-			self::$instance = new GitPHP_Log($config->GetValue('debug', false), $config->GetValue('benchmark', false));
-		}
-
-		return self::$instance;
-	}
-
-	/**
-	 * DestroyInstance
-	 *
-	 * Releases the singleton instance
-	 *
-	 * @access public
-	 * @static
-	 */
-	public static function DestroyInstance()
-	{
-		self::$instance = null;
-	}
-
-	/**
-	 * __construct
-	 *
-	 * Constructor
-	 *
-	 * @access private
-	 * @return Log object
-	 */
-	private function __construct($enabled = false, $benchmark = false)
-	{
-		$this->startTime = microtime(true);
-		$this->startMem = memory_get_usage();
-
-		$this->enabled = $enabled;
-		$this->benchmark = $benchmark;
-	}
-
-	/**
-	 * SetStartTime
-	 *
-	 * Sets start time
-	 *
-	 * @access public
-	 * @param float $start starting microtime
-	 */
-	public function SetStartTime($start)
-	{
-		$this->startTime = $start;
-	}
-
-	/**
-	 * SetStartMemory
-	 *
-	 * Sets start memory
-	 *
-	 * @access public
-	 * @param integer $start starting memory
-	 */
-	public function SetStartMemory($start)
-	{
-		$this->startMem = $start;
-	}
-
-	/**
-	 * Log
-	 *
-	 * Log an entry
-	 *
-	 * @access public
-	 * @param string $message message to log
-	 */
-	public function Log($message)
-	{
-		if (!$this->enabled)
-			return;
-
-		$entry = array();
-		
-		if ($this->benchmark) {
-			$entry['time'] = microtime(true);
-			$entry['mem'] = memory_get_usage();
-		}
-
-		$entry['msg'] = $message;
-		$this->entries[] = $entry;
-	}
-
-	/**
-	 * GetEnabled
-	 *
-	 * Gets whether logging is enabled
-	 *
-	 * @access public
-	 * @return boolean true if logging is enabled
-	 */
-	public function GetEnabled()
-	{
-		return $this->enabled;
-	}
-
-	/**
-	 * SetEnabled
-	 *
-	 * Sets whether logging is enabled
-	 *
-	 * @access public
-	 * @param boolean $enable true if logging is enabled
-	 */
-	public function SetEnabled($enable)
-	{
-		$this->enabled = $enable;
-	}
-
-	/**
-	 * GetBenchmark
-	 *
-	 * Gets whether benchmarking is enabled
-	 *
-	 * @access public
-	 * @return boolean true if benchmarking is enabled
-	 */
-	public function GetBenchmark()
-	{
-		return $this->benchmark;
-	}
-
-	/**
-	 * SetBenchmark
-	 *
-	 * Sets whether benchmarking is enabled
-	 *
-	 * @access public
-	 * @param boolean $bench true if benchmarking is enabled
-	 */
-	public function SetBenchmark($bench)
-	{
-		$this->benchmark = $bench;
-	}
-
-	/**
-	 * GetEntries
-	 *
-	 * Calculates times and gets log entries
-	 *
-	 * @access public
-	 * @return array log entries
-	 */
-	public function GetEntries()
-	{
-		$data = array();
-	
-		if ($this->enabled) {
-
-			if ($this->benchmark) {
-				$endTime = microtime(true);
-				$endMem = memory_get_usage();
-
-				$lastTime = $this->startTime;
-				$lastMem = $this->startMem;
-
-				$data[] = 'DEBUG: [' . $this->startTime . '] [' . $this->startMem . ' bytes] Start';
-
-			}
-
-			foreach ($this->entries as $entry) {
-				if ($this->benchmark) {
-					$data[] = 'DEBUG: [' . $entry['time'] . '] [' . ($entry['time'] - $this->startTime) . ' sec since start] [' . ($entry['time'] - $lastTime) . ' sec since last] [' . $entry['mem'] . ' bytes] [' . ($entry['mem'] - $this->startMem) . ' bytes since start] [' . ($entry['mem'] - $lastMem) . ' bytes since last] ' . $entry['msg'];
-					$lastTime = $entry['time'];
-					$lastMem = $entry['mem'];
-				} else {
-					$data[] = 'DEBUG: ' . $entry['msg'];
-				}
-			}
-
-			if ($this->benchmark) {
-				$data[] = 'DEBUG: [' . $endTime . '] [' . ($endTime - $this->startTime) . ' sec since start] [' . ($endTime - $lastTime) . ' sec since last] [' . $endMem . ' bytes] [' . ($endMem - $this->startMem) . ' bytes since start] [' . ($endMem - $lastMem) . ' bytes since last] End';
-			}
-		}
-
-		return $data;
-	}
-
-}
-

--- a/include/controller/ControllerBase.class.php
+++ b/include/controller/ControllerBase.class.php
@@ -385,23 +385,23 @@
 
 		if (!$this->tpl->isCached($this->GetTemplate(), $this->GetFullCacheKey())) {
 			$this->tpl->clearAllAssign();
-			if (GitPHP_Log::GetInstance()->GetBenchmark())
-				GitPHP_Log::GetInstance()->Log("Data load begin");
+			if (GitPHP_DebugLog::GetInstance()->GetBenchmark())
+				GitPHP_DebugLog::GetInstance()->Log("Data load begin");
 			$this->LoadCommonData();
 			$this->LoadData();
-			if (GitPHP_Log::GetInstance()->GetBenchmark())
-				GitPHP_Log::GetInstance()->Log("Data load end");
+			if (GitPHP_DebugLog::GetInstance()->GetBenchmark())
+				GitPHP_DebugLog::GetInstance()->Log("Data load end");
 		}
 
 		if (!$this->preserveWhitespace) {
 			//$this->tpl->loadFilter('output', 'trimwhitespace');
 		}
 
-		if (GitPHP_Log::GetInstance()->GetBenchmark())
-			GitPHP_Log::GetInstance()->Log("Smarty render begin");
+		if (GitPHP_DebugLog::GetInstance()->GetBenchmark())
+			GitPHP_DebugLog::GetInstance()->Log("Smarty render begin");
 		$this->tpl->display($this->GetTemplate(), $this->GetFullCacheKey());
-		if (GitPHP_Log::GetInstance()->GetBenchmark())
-			GitPHP_Log::GetInstance()->Log("Smarty render end");
+		if (GitPHP_DebugLog::GetInstance()->GetBenchmark())
+			GitPHP_DebugLog::GetInstance()->Log("Smarty render end");
 
 		$this->tpl->clearAllAssign();
 	}

--- a/include/controller/Controller_Blame.class.php
+++ b/include/controller/Controller_Blame.class.php
@@ -85,7 +85,7 @@
 		}
 		if (isset($_GET['o']) && ($_GET['o'] == 'js')) {
 			$this->params['js'] = true;
-			GitPHP_Log::GetInstance()->SetEnabled(false);
+			GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 		}
 	}
 

--- a/include/controller/Controller_Blob.class.php
+++ b/include/controller/Controller_Blob.class.php
@@ -95,7 +95,7 @@
 	{
 		if (isset($this->params['plain']) && $this->params['plain']) {
 
-			GitPHP_Log::GetInstance()->SetEnabled(false);
+			GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 			$this->preserveWhitespace = true;
 
 			// XXX: Nasty hack to cache headers

--- a/include/controller/Controller_Commit.class.php
+++ b/include/controller/Controller_Commit.class.php
@@ -81,7 +81,7 @@
 
 		if (isset($_GET['o']) && ($_GET['o'] == 'jstip')) {
 			$this->params['jstip'] = true;
-			GitPHP_Log::GetInstance()->SetEnabled(false);
+			GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 		}
 	}
 

--- a/include/controller/Controller_DiffBase.class.php
+++ b/include/controller/Controller_DiffBase.class.php
@@ -104,7 +104,7 @@
 	protected function LoadHeaders()
 	{
 		if (isset($this->params['plain']) && ($this->params['plain'] === true)) {
-			GitPHP_Log::GetInstance()->SetEnabled(false);
+			GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 			$this->headers[] = 'Content-type: text/plain; charset=UTF-8';
 		}
 	}

--- a/include/controller/Controller_Feed.class.php
+++ b/include/controller/Controller_Feed.class.php
@@ -106,7 +106,7 @@
 	 */
 	protected function ReadQuery()
 	{
-		GitPHP_Log::GetInstance()->SetEnabled(false);
+		GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 	}
 
 	/**

--- a/include/controller/Controller_ProjectList.class.php
+++ b/include/controller/Controller_ProjectList.class.php
@@ -125,12 +125,12 @@
 	{
 		if (isset($this->params['opml']) && ($this->params['opml'] === true)) {
 			$this->headers[] = "Content-type: text/xml; charset=UTF-8";
-			GitPHP_Log::GetInstance()->SetEnabled(false);
+			GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 			$this->preserveWhitespace = true;
 		} else if (isset($this->params['txt']) && ($this->params['txt'] === true)) {
 			$this->headers[] = "Content-type: text/plain; charset=utf-8";
 			$this->headers[] = "Content-Disposition: inline; filename=\"index.aux\"";
-			GitPHP_Log::GetInstance()->SetEnabled(false);
+			GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 		}
 	}
 

--- a/include/controller/Controller_Snapshot.class.php
+++ b/include/controller/Controller_Snapshot.class.php
@@ -117,7 +117,7 @@
 		else
 			$this->params['format'] = $this->config->GetValue('compressformat', GITPHP_COMPRESS_ZIP);
 			
-		GitPHP_Log::GetInstance()->SetEnabled(false);
+		GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 	}
 
 	/**

--- a/include/controller/Controller_Tag.class.php
+++ b/include/controller/Controller_Tag.class.php
@@ -80,7 +80,7 @@
 
 		if (isset($_GET['o']) && ($_GET['o'] == 'jstip')) {
 			$this->params['jstip'] = true;
-			GitPHP_Log::GetInstance()->SetEnabled(false);
+			GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 		}
 	}
 

--- a/include/controller/Controller_Tree.class.php
+++ b/include/controller/Controller_Tree.class.php
@@ -87,7 +87,7 @@
 
 		if (isset($_GET['o']) && ($_GET['o'] == 'js')) {
 			$this->params['js'] = true;
-			GitPHP_Log::GetInstance()->SetEnabled(false);
+			GitPHP_DebugLog::GetInstance()->SetEnabled(false);
 		}
 	}
 

--- a/include/git/GitExe.class.php
+++ b/include/git/GitExe.class.php
@@ -133,11 +133,11 @@
 	{
 		$fullCommand = $this->CreateCommand($projectPath, $command, $args);
 
-		GitPHP_Log::GetInstance()->Log('Begin executing "' . $fullCommand . '"');
+		GitPHP_DebugLog::GetInstance()->Log('Begin executing "' . $fullCommand . '"');
 
 		$ret = shell_exec($fullCommand);
 
-		GitPHP_Log::GetInstance()->Log('Finish executing "' . $fullCommand . '"' .
+		GitPHP_DebugLog::GetInstance()->Log('Finish executing "' . $fullCommand . '"' .
 			"\nwith result: " . $ret);
 
 		return $ret;

--- a/include/git/ProjectListArray.class.php
+++ b/include/git/ProjectListArray.class.php
@@ -80,7 +80,7 @@
 					}
 				}
 			} catch (Exception $e) {
-				GitPHP_Log::GetInstance()->Log($e->getMessage());
+				GitPHP_DebugLog::GetInstance()->Log($e->getMessage());
 			}
 		}
 	}

--- a/include/git/ProjectListArrayLegacy.class.php
+++ b/include/git/ProjectListArrayLegacy.class.php
@@ -66,7 +66,7 @@
 							unset($projObj);
 						}
 					} catch (Exception $e) {
-						GitPHP_Log::GetInstance()->Log($e->getMessage());
+						GitPHP_DebugLog::GetInstance()->Log($e->getMessage());
 					}
 				}
 			}

--- a/include/git/ProjectListDirectory.class.php
+++ b/include/git/ProjectListDirectory.class.php
@@ -85,7 +85,7 @@
 		if (!(is_dir($dir) && is_readable($dir)))
 			return;
 
-		GitPHP_Log::GetInstance()->Log(sprintf('Searching directory %1$s', $dir));
+		GitPHP_DebugLog::GetInstance()->Log(sprintf('Searching directory %1$s', $dir));
 
 		if ($dh = opendir($dir)) {
 			$trimlen = strlen(GitPHP_Util::AddSlash($this->projectRoot)) + 1;
@@ -93,7 +93,7 @@
 				$fullPath = $dir . '/' . $file;
 				if ((strpos($file, '.') !== 0) && is_dir($fullPath)) {
 					if (is_file($fullPath . '/HEAD')) {
-						GitPHP_Log::GetInstance()->Log(sprintf('Found project %1$s', $fullPath));
+						GitPHP_DebugLog::GetInstance()->Log(sprintf('Found project %1$s', $fullPath));
 						$projectPath = substr($fullPath, $trimlen);
 						if (!isset($this->projects[$projectPath])) {
 							$project = $this->InstantiateProject($projectPath);
@@ -106,7 +106,7 @@
 						$this->RecurseDir($fullPath);
 					}
 				} else {
-					GitPHP_Log::GetInstance()->Log(sprintf('Skipping %1$s', $fullPath));
+					GitPHP_DebugLog::GetInstance()->Log(sprintf('Skipping %1$s', $fullPath));
 				}
 			}
 			closedir($dh);
@@ -134,7 +134,7 @@
 			}
 
 			if ($this->exportedOnly && !$project->GetDaemonEnabled()) {
-				GitPHP_Log::GetInstance()->Log(sprintf('Project %1$s not enabled for export', $project->GetPath()));
+				GitPHP_DebugLog::GetInstance()->Log(sprintf('Project %1$s not enabled for export', $project->GetPath()));
 				return null;
 			}
 
@@ -149,7 +149,7 @@
 			return $project;
 
 		} catch (Exception $e) {
-			GitPHP_Log::GetInstance()->Log($e->getMessage());
+			GitPHP_DebugLog::GetInstance()->Log($e->getMessage());
 		}
 
 		return null;

--- a/include/git/ProjectListFile.class.php
+++ b/include/git/ProjectListFile.class.php
@@ -111,7 +111,7 @@
 						$owner = $lineData['owner'];
 					}
 				} else {
-					GitPHP_Log::GetInstance()->Log(sprintf('%1$s is not a git project', $projectRoot . $proj));
+					GitPHP_DebugLog::GetInstance()->Log(sprintf('%1$s is not a git project', $projectRoot . $proj));
 				}
 				break;
 			}

--- a/include/git/ProjectListScmManager.class.php
+++ b/include/git/ProjectListScmManager.class.php
@@ -112,17 +112,17 @@
 			return null;
 
 		if (!(isset($data['type']) && ($data['type'] == 'git'))) {
-			GitPHP_Log::GetInstance()->Log(sprintf('%1$s is not a git project', $proj));
+			GitPHP_DebugLog::GetInstance()->Log(sprintf('%1$s is not a git project', $proj));
 			return null;
 		}
 
 		if (!(isset($data['public']) && ($data['public'] == true))) {
-			GitPHP_Log::GetInstance()->Log(sprintf('%1$s is not public', $proj));
+			GitPHP_DebugLog::GetInstance()->Log(sprintf('%1$s is not public', $proj));
 			return null;
 		}
 
 		if (!is_file(GitPHP_Util::AddSlash($this->projectRoot) . $proj . '/HEAD')) {
-			GitPHP_Log::GetInstance()->Log(sprintf('%1$s is not a git project', $proj));
+			GitPHP_DebugLog::GetInstance()->Log(sprintf('%1$s is not a git project', $proj));
 		}
 
 		$projectObj = new GitPHP_Project($this->projectRoot, $proj);

file:a/index.php -> file:b/index.php
--- a/index.php
+++ b/index.php
@@ -43,7 +43,7 @@
 
 require_once(GITPHP_INCLUDEDIR . 'Resource.class.php');
 
-require_once(GITPHP_INCLUDEDIR . 'Log.class.php');
+require_once(GITPHP_INCLUDEDIR . 'DebugLog.class.php');
 
 require_once(GITPHP_GITOBJECTDIR . 'ProjectList.class.php');
 
@@ -123,9 +123,9 @@
 	/*
 	 * Debug
 	 */
-	if (GitPHP_Log::GetInstance()->GetEnabled()) {
-		GitPHP_Log::GetInstance()->SetStartTime(GITPHP_START_TIME);
-		GitPHP_Log::GetInstance()->SetStartMemory(GITPHP_START_MEM);
+	if (GitPHP_DebugLog::GetInstance()->GetEnabled()) {
+		GitPHP_DebugLog::GetInstance()->SetStartTime(GITPHP_START_TIME);
+		GitPHP_DebugLog::GetInstance()->SetStartMemory(GITPHP_START_MEM);
 	}
 
 	/*
@@ -181,7 +181,7 @@
 
 }
 
-GitPHP_Log::GetInstance()->Log('MemoryCache count: ' . GitPHP_MemoryCache::GetInstance()->GetCount());
+GitPHP_DebugLog::GetInstance()->Log('MemoryCache count: ' . GitPHP_MemoryCache::GetInstance()->GetCount());
 
 GitPHP_ProjectList::DestroyInstance();
 GitPHP_MemoryCache::DestroyInstance();
@@ -189,8 +189,8 @@
 GitPHP_Config::DestroyInstance();
 GitPHP_GitExe::DestroyInstance();
 
-if (GitPHP_Log::GetInstance()->GetEnabled()) {
-	$entries = GitPHP_Log::GetInstance()->GetEntries();
+if (GitPHP_DebugLog::GetInstance()->GetEnabled()) {
+	$entries = GitPHP_DebugLog::GetInstance()->GetEntries();
 	foreach ($entries as $logline) {
 		echo "<br />\n" . htmlspecialchars($logline, ENT_QUOTES, 'UTF-8', true);
 	}
@@ -198,7 +198,7 @@
 	unset($entries);
 }
 
-GitPHP_Log::DestroyInstance();
+GitPHP_DebugLog::DestroyInstance();
 
 ?>
 

comments