MCPcopy Create free account
hub / github.com/Superalgos/Superalgos / newWebDebugLog

Function newWebDebugLog

Platform/UI/WebDebugLog.js:1–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1function newWebDebugLog() {
2 try {
3 let thisObject = {
4 write: write,
5 fileName: 'undefined'
6 }
7
8 return thisObject
9
10 function write(pText) {
11 console.log(spacePad(thisObject.fileName, 50) + ' : ' + pText)
12
13 function spacePad(str, max) {
14 str = str.toString()
15 return str.length < max ? spacePad(' ' + str, max) : str
16 }
17 }
18 } catch (err) {
19 console.log(spacePad(MODULE_NAME, 50) + ' : ' + '[ERROR] WebDebugLog --> err = ' + err.stack)
20 }
21}

Callers 15

newAppLoaderFunction · 0.70
newProductStorageFunction · 0.70
newEventsServerClientFunction · 0.70
newCanvasFunction · 0.70
newAppPostLoaderFunction · 0.70
newAnimationFunction · 0.70
newListItemFunction · 0.50
newListViewFunction · 0.50

Calls 2

logMethod · 0.80
spacePadFunction · 0.70

Tested by

no test coverage detected