baker icon indicating copy to clipboard operation
baker copied to clipboard

Turn off logs in production

Open benoitchantre opened this issue 11 years ago • 1 comments

It would be nice to have a way to switch off logs for a release without having to manually comment line NSLog. Instead of calling NSLogdirectly, we could use another method which respond to a setting.

According to Apple Best Practices for Logging, it's not a good practice to keep debug logs in a release.

If you log debugging information, you should either disable these messages by default or log them at the Debug level. This ensures that your debugging messages don’t clutter up your (and your users’) logs.

benoitchantre avatar Aug 30 '13 06:08 benoitchantre

Thanks, we'll look into it. Added as feature request. :)

folletto avatar Sep 01 '13 09:09 folletto