Initial commit
This commit is contained in:
commit
9e6cd3c0aa
122 files changed
+16070
No files matched your search
@@ -0,0 +1,20 @@
|
||||
|
||||
function newWebDebugLog() {
|
||||
|
||||
let thisObject = {
|
||||
write: write,
|
||||
fileName: undefined
|
||||
}
|
||||
|
||||
return thisObject;
|
||||
|
||||
function write(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