user2899728
user2899728

Reputation: 2319

How to disable / hide console logs in production?

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

Answers (1)

C14L
C14L

Reputation: 12548

You could just override the log method of the console object.

console.log = function(){}

Upvotes: 6

Related Questions