WebApp Loading all modules declared at Project Schema

This commit is contained in:
Luis Fernando Molina committed 2021-09-06 20:30:05 +02:00
1 parent ecc7b7d7b6
commit 373f0307d8
7 files changed
+82 -33

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
function newWebDebugLog() {
try {
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
}
}
} catch (err) {
console.log(spacePad(MODULE_NAME, 50) + ' : ' + '[ERROR] WebDebugLog --> err = ' + err.stack)
}
}