r9651 - helma-ng/trunk/modules/helma
[email protected] Wed, 22 Apr 2009 01:41:59 +0200 (CEST)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090421234159.879533D0D6@mia> |
Author: hannes
Date: 2009-04-22 01:41:59 +0200 (Wed, 22 Apr 2009)
New Revision: 9651
Modified:
helma-ng/trunk/modules/helma/logging.js
Log:
Minor fixes in helma/logging
Details at http://dev.helma.org/trac/helma/changeset/9651
Modified: helma-ng/trunk/modules/helma/logging.js
===================================================================
--- helma-ng/trunk/modules/helma/logging.js 2009-04-21 23:41:57 UTC (rev 9650)
+++ helma-ng/trunk/modules/helma/logging.js 2009-04-21 23:41:59 UTC (rev 9651)
@@ -34,7 +34,7 @@
// getResource('foo').name gets us the absolute path to a local resource
this.setConfig(getResource('config/log4j.properties'));
}
- return org.apache.log4j.Logger.getLogger(name.replace('/', '.'));
+ return org.apache.log4j.Logger.getLogger(name.replace(/\//g, '.'));
}
// now that getLogger is installed we can get our own log
@@ -73,7 +73,7 @@
for (var i = 0; i < list.size(); i++) {
var item = list.get(i);
var msg = item[0];
- var multiline = msg && msg.indexOf('\n') > 0 || msg.indexOf('\r')> 0;
+ var multiline = msg && msg.trim().indexOf('\n') > 0 || msg.indexOf('\r')> 0;
body.write("<div class=\"helma-debug-line\" style=\"background: #fc3;");
body.write("color: black; border-top: 1px solid black;\">");
if (multiline) {