MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / createLog

Method createLog

html/js/logs_ts.js:2–15  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

1class Log {
2 createLog(entry) {
3 var element = document.createElement("PRE");
4 if (entry.indexOf("WARNING") != -1) {
5 element.className = "warningMsg";
6 }
7 if (entry.indexOf("ERROR") != -1) {
8 element.className = "errorMsg";
9 }
10 if (entry.indexOf("DEBUG") != -1) {
11 element.className = "debugMsg";
12 }
13 element.innerHTML = entry;
14 return element;
15 }
16}
17function showLogs(bottom) {
18 var log = new Log();

Callers 1

showLogsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected