Created
January 7, 2020 15:18
-
-
Save m25lazi/eb56ea7b99e4d4ebc06eef9a9187bbe0 to your computer and use it in GitHub Desktop.
Snippet for reading environment variables.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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