Author: hlship
Date: Fri Apr  1 01:03:43 2011
New Revision: 1087536

URL: http://svn.apache.org/viewvc?rev=1087536&view=rev
Log:
TAP5-683: The Tapestry object should include an info() for logging to the 
console (as it already includes error(), debug(), etc.

Modified:
    
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.css
    
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.js
    
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.css
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.css?rev=1087536&r1=1087535&r2=1087536&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.css
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.css
 Fri Apr  1 01:03:43 2011
@@ -21,7 +21,12 @@ DIV.t-console DIV.t-warn {
     color: black;
 }
 
+DIV.t-console DIV.t-info {
+    background-color: green;
+    color: white;
+}
+
 DIV.t-console DIV.t-debug {
     background-color: silver;
     color: black;
-}
\ No newline at end of file
+}

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.js
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.js?rev=1087536&r1=1087535&r2=1087536&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.js
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry-console.js
 Fri Apr  1 01:03:43 2011
@@ -19,6 +19,11 @@ Tapestry.Logging = {
                                Tapestry.Logging.updateConsole("t-debug", msg);
         },
         
+        info: function(msg)
+        {
+                       Tapestry.Logging.updateConsole("t-info", msg);
+        },
+
         warn: function(msg)
         {
                        Tapestry.Logging.updateConsole("t-warn", msg);
@@ -82,4 +87,4 @@ Tapestry.Logging = {
             });
         }
                 
-}
\ No newline at end of file
+}

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=1087536&r1=1087535&r2=1087536&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
 Fri Apr  1 01:03:43 2011
@@ -288,6 +288,11 @@ var Tapestry = {
                Tapestry.invokeLogger(message, substitutions, 
Tapestry.Logging.warn);
        },
 
+       /** Formats and displays an info message on the console. */
+       info : function(message, substitutions) {
+               Tapestry.invokeLogger(message, substitutions, 
Tapestry.Logging.info);
+       },
+
        /** Formats and displays a debug message on the console. */
        debug : function(message, substitutions) {
                Tapestry.invokeLogger(message, substitutions, 
Tapestry.Logging.debug);
@@ -2203,4 +2208,4 @@ Tapestry.onDOMLoaded(Tapestry.onDomLoade
 /* Ajax code needs to know to do nothing after the window is unloaded. */
 Event.observe(window, "beforeunload", function() {
        Tapestry.windowUnloaded = true;
-});
\ No newline at end of file
+});


Reply via email to