Improving Logging, cleaning, Globals module introduced

This commit is contained in:
Luis Fernando Molina committed 2018-06-27 15:18:23 +02:00
1 parent 4d433e6f7b
commit 9fef60c27e
7 files changed
+186 -347

No files matched your search

+6 -2
View File
@@ -10,7 +10,11 @@ function newWebDebugLog() {
function write(pText) {
console.log(thisObject.fileName + " : " + pText);
console.log(spacePad(thisObject.fileName, 50) + " : " + pText);
function spacePad(str, max) {
str = str.toString();
return str.length < max ? spacePad(" " + str, max) : str;
}
}
}