#12 log4javscript lite cannot be disabled

closed-fixed
nobody
None
7
2012-09-18
2012-03-23
ashwin
No

To reproduce, add the following lines under a script tag and run:

var log = log4javascript.getDefaultLogger();
log4javascript.setEnabled(false);
log.debug("test log");

The log still pops up even though the logger is disabled. Basically, the fix is very simple, which is to check for the enabled flag in the function this.log(...). The full log4javascript.js does this, but it's missing in log4javascript_lite.js.

Discussion

  • ashwin

    ashwin - 2012-03-23
    • priority: 5 --> 7
     
  • Tim Down

    Tim Down - 2012-09-18

    Fixed in 1.4.3.

     
  • Tim Down

    Tim Down - 2012-09-18
    • status: open --> open-fixed
     
  • Tim Down

    Tim Down - 2012-09-18
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks