Swift: Deactivate Logging in Production
Swift: Deactivate Logging in Production avatar

To deactivate logging in production, place the following function in your code (preferably in AppDelegate.swift outside any class):