changeset 65:7b87ec8b0842

Renamed logger to Logger.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 11 Oct 2012 20:36:24 +0200
parents 164268b4e0d9
children 74f7b64bdb78
files CacheTimeCheck.inc Logger.inc index.php logger.inc
diffstat 4 files changed, 24 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/CacheTimeCheck.inc	Thu Oct 11 20:33:04 2012 +0200
+++ b/CacheTimeCheck.inc	Thu Oct 11 20:36:24 2012 +0200
@@ -1,10 +1,10 @@
 <?php
 $baseDir = dirname(__FILE__);
 
-include_once 'logger.inc';
+include_once 'Logger.inc';
 include_once 'common-functions.inc';
 $cache = CacheTimeCheck::instance(__FILE__);
-$cache->cache_time("${baseDir}/logger.inc");
+$cache->cache_time("${baseDir}/Logger.inc");
 $cache->cache_time("${baseDir}/common-functions.inc");
 
 /**
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Logger.inc	Thu Oct 11 20:36:24 2012 +0200
@@ -0,0 +1,21 @@
+<?php
+/**
+ * @file
+ * Common access point for logging
+ */
+class Logger {
+  static function msg($level, $msg)
+  {
+    if (DEBUG_LEVEL >= $level) {
+      print $msg;
+      if(ABORT_ON_LOG)
+	exit;
+    }
+  }
+
+  static function warn($msg)
+  {
+    self::msg(VERBOSITY_WARNING, $msg);
+  }
+}
+?>
\ No newline at end of file
--- a/index.php	Thu Oct 11 20:33:04 2012 +0200
+++ b/index.php	Thu Oct 11 20:36:24 2012 +0200
@@ -17,7 +17,7 @@
 $cache->includeOnce('common-functions.inc', $baseDir);
 $cache->includeOnce('filters.inc', $baseDir);
 $cache->includeOnce('InputParser.inc', $baseDir);
-$cache->includeOnce('logger.inc', $baseDir);
+$cache->includeOnce('Logger.inc', $baseDir);
 
 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) {
   var_dump($_SERVER);
--- a/logger.inc	Thu Oct 11 20:33:04 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-<?php
-/**
- * @file
- * Common access point for logging
- */
-class Logger {
-  static function msg($level, $msg)
-  {
-    if (DEBUG_LEVEL >= $level) {
-      print $msg;
-      if(ABORT_ON_LOG)
-	exit;
-    }
-  }
-
-  static function warn($msg)
-  {
-    self::msg(VERBOSITY_WARNING, $msg);
-  }
-}
-?>
\ No newline at end of file