Reputation: 2319
I am using cordova to build my app. I want to hide all logs created by console.log in production app. But I could not find any solution to disable it.
Is this really possible to hide console logs ?
I'll really appreciate any contribution.
Thanks Regards
Upvotes: 0
Views: 4667
Reputation: 12548
You could just override the log
method of the console
object.
console.log = function(){}
Upvotes: 6