User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:devel:jsdebuging [2018/06/01 16:34]
joebordes [Destination log file]
en:devel:jsdebuging [2018/06/01 16:47] (current)
joebordes [Browser console]
Line 42: Line 42:
  
 <code javascript>​ <code javascript>​
-jslogjslog2console ​= true;+jslog.jslog2console ​= true
 +</​code>​ 
 + 
 +====Deactivate logging ==== 
 + 
 +In certain situations it could be useful to keep the logging messages around while we are tacking down some hard to find bug but we want to deactivate them temporarily. **jslog** has a settings option for this called **active** 
 + 
 +<code javascript>​ 
 +jslog.active = false;
 </​code>​ </​code>​