Improving Logging, cleaning, Globals module introduced
This commit is contained in:
1 parent
4d433e6f7b
commit
9fef60c27e
7 files changed
+186
-347
No files matched your search
+6
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user