()
| 1 | function 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 | } |
no test coverage detected