Skip to content

Instantly share code, notes, and snippets.

@m25lazi
Created January 7, 2020 15:18
Show Gist options
  • Save m25lazi/c1b48936912dc747ed6878dad5bb0bf0 to your computer and use it in GitHub Desktop.
Save m25lazi/c1b48936912dc747ed6878dad5bb0bf0 to your computer and use it in GitHub Desktop.
Snippet for reading environment variables.
var shouldLogTextAnalyzer = false
if ProcessInfo.processInfo.environment["text_analyzer_log"] == "verbose" {
shouldLogTextAnalyzer = true
}
if shouldLogTextAnalyzer {
/// Actual logger code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment