r9486 - helma-ng/trunk/modules/helma

[email protected]
Newsgroups gmane.comp.java.helma.cvs
Message-ID <[email protected]>
Author: hannes
Date: 2009-01-15 12:59:37 +0100 (Thu, 15 Jan 2009)
New Revision: 9486

Modified:
   helma-ng/trunk/modules/helma/logging.js
Log:
Move back to plain append-to-response-body logging until we get firebug logging right.

Details at http://dev.helma.org/trac/helma/changeset/9486

Modified: helma-ng/trunk/modules/helma/logging.js
===================================================================
--- helma-ng/trunk/modules/helma/logging.js	2009-01-15 11:59:24 UTC (rev 9485)
+++ helma-ng/trunk/modules/helma/logging.js	2009-01-15 11:59:37 UTC (rev 9486)
@@ -68,18 +68,18 @@
             for (var i = 0; i < list.size(); i++) {
                 var item = list.get(i);
                 var b = new Buffer();
-                b.writeln(item[0]);
+                res.write("<div class=\"helma-debug-line\" style=\"background: #fc3;");
+                res.write("color: black; border-top: 1px solid black;\">");
+                res.write(item[0]);
                 if (item[1]) {
-                    b.writeln("Script Stack");
-                    b.writeln("————————————");
-                    b.writeln(item[1]);
+                    res.write("<h4 style='padding-left: 8px; margin: 4px;'>Script Stack</h4>");
+                    res.write("<pre style='margin: 0;'>", item[1], "</pre>");
                 }
                 if (item[2]) {
-                    b.writeln("Java Stack");
-                    b.writeln("——————————");
-                    b.writeln(item[2]);
+                    res.write("<h4 style='padding-left: 8px; margin: 4px;'>Java Stack</h4>");
+                    res.write("<pre style='margin: 0;'>", item[2], "</pre>");
                 }
-                res.write(b.toFirebugConsole());
+                res.writeln("</div>");
             }
         }
     };

_______________________________________________
Helma-CVS mailing list
[email protected]
http://helma.org/mailman/listinfo/helma-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.