Every line of 'javascript debug log' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
103 function log(elementId, object) { 104 document.getElementById(elementId).innerHTML = JSON.stringify(object, null, 2); 105 }
22 log(...args) { 23 var log = window.console; 24 if (SockJS.currentMockInstance && SockJS.currentMockInstance.$log) { 25 log = SockJS.currentMockInstance.$log; 26 } 27 log.debug(...args); 28 }
45 public debug (log: Log) { 46 return 47 }
4 export default function log(...message) { 5 if (atom.inDevMode() || atom.config.get('Hydrogen.debug')) { 6 console.debug('Hydrogen:', ...message); 7 } 8 }
32 static debug(msg : string) : void { 33 if (this._currentLevel <= LogLevel.Debug) { 34 console.log('DEBUG: ' + msg); 35 } 36 }
139 function debug(string) { 140 141 if (typeof string != "string") { 142 string = JSON.stringify(string, null, ' '); 143 } 144 145 console.debug(string); 146 }
114 debug : function log(msg) { 115 element.innerHTML += "<p>" + msg + "</p>"; 116 },
39 function debug(msg) { 40 if (debugMode) { 41 if (typeof msg === 'object') { 42 console.log(JSON.stringify(msg, null, 4)); 43 } 44 else { 45 console.log(msg); 46 } 47 } 48 }
79 debug(obj: any, group: string = 'general'): void { 80 const message: string = this.get_string(obj); 81 this.log_inst.debug(message); 82 this.logz_inst.debug(this.get_logz_data(message, group)); 83 }
28 log(message) 29 { 30 if (!this.verbose) return; 31 console.log(`%c ${message} `, 'color: #1ca51c'); 32 }