ehynds / grunt-remove-logging

Grunt.js task for removing console logging statements
MIT License
192 stars 33 forks source link

FR : Regular expression needed in the config... #15

Open hemanth opened 11 years ago

hemanth commented 11 years ago

Say the code is like [Object attributes with name spaces] :

$ = (function(){}
       var log = x.y.z.log.logManager.getLogger('say');
       log.say("zomg!");
());

or

$ = (function(){}
       return {log : x.y.z.log.logManager.getLogger('fatal')};
());

$.log.say("zomg");

Even though we provide the namespace and method in the grunt config, these kind of logging message will not be stripped off.

The potential fix with be to provide a RE in the config?

hemanth commented 10 years ago

Ping @ehynds