Skip to content

Instantly share code, notes, and snippets.

@m25lazi
Created January 7, 2020 15:18
Show Gist options
  • Save m25lazi/eb56ea7b99e4d4ebc06eef9a9187bbe0 to your computer and use it in GitHub Desktop.
Save m25lazi/eb56ea7b99e4d4ebc06eef9a9187bbe0 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