[Mapbender-commits] r1425 - in trunk/mapbender: conf http/classes
http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jun 4 04:22:49 EDT 2007
Author: christoph
Date: 2007-06-04 04:22:49 -0400 (Mon, 04 Jun 2007)
New Revision: 1425
Modified:
trunk/mapbender/conf/mapbender.conf-dist
trunk/mapbender/http/classes/class_mb_exception.php
trunk/mapbender/http/javascripts/map.js
Log:
new log level notice
Modified: trunk/mapbender/conf/mapbender.conf-dist
===================================================================
--- trunk/mapbender/conf/mapbender.conf-dist 2007-06-01 16:09:45 UTC (rev 1424)
+++ trunk/mapbender/conf/mapbender.conf-dist 2007-06-04 08:22:49 UTC (rev 1425)
@@ -139,7 +139,7 @@
# Mapbender error logging
# --------------------------------------------
-define("LOG_LEVEL_LIST", "off,error,warning,all");
+define("LOG_LEVEL_LIST", "off,error,warning,notice,all");
define("LOG_LEVEL", "all");
define("LOG_JS", "on"); // "on", "alert", "console", "off"
Modified: trunk/mapbender/http/classes/class_mb_exception.php
===================================================================
--- trunk/mapbender/http/classes/class_mb_exception.php 2007-06-01 16:09:45 UTC (rev 1424)
+++ trunk/mapbender/http/classes/class_mb_exception.php 2007-06-04 08:22:49 UTC (rev 1425)
@@ -66,6 +66,14 @@
}
}
+class mb_notice extends mb_log {
+ var $level = "notice";
+
+ function mb_notice($message) {
+ $this->mb_log($message, $this->level);
+ }
+}
+
class mb_warning extends mb_log {
var $level = "warning";
Modified: trunk/mapbender/http/javascripts/map.js
===================================================================
--- trunk/mapbender/http/javascripts/map.js 2007-06-01 16:09:45 UTC (rev 1424)
+++ trunk/mapbender/http/javascripts/map.js 2007-06-04 08:22:49 UTC (rev 1425)
@@ -1281,12 +1281,25 @@
*
* @extends {@link Mb_log}
* @param message the message that is being logged
- */
+ */
function Mb_warning(message) {
var level = "warning";
this.throwException(message, level);
}
Mb_warning.prototype = new Mb_log();
+
+/**
+ * class for notice logging
+ *
+ * @extends {@link Mb_log}
+ * @param message the message that is being logged
+ */
+
+function Mb_notice(message) {
+ var level = "notice";
+ this.throwException(message, level);
+}
+Mb_notice.prototype = new Mb_log();
/*
***************************************************************************************
More information about the Mapbender_commits
mailing list