MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / createLog

Method createLog

ts/logs_ts.ts:3–22  ·  view source on GitHub ↗
(entry:string)

Source from the content-addressed store, hash-verified

1class Log {
2
3 createLog(entry:string):any {
4
5 var element = document.createElement("PRE");
6
7 if (entry.indexOf("WARNING") != -1) {
8 element.className = "warningMsg"
9 }
10
11 if (entry.indexOf("ERROR") != -1) {
12 element.className = "errorMsg"
13 }
14
15 if (entry.indexOf("DEBUG") != -1) {
16 element.className = "debugMsg"
17 }
18
19 element.innerHTML = entry
20
21 return element
22 }
23
24}
25

Callers 1

showLogsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected