Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jschwietert/a15c73456500709e34ee7eb8b4be97cb to your computer and use it in GitHub Desktop.
Save jschwietert/a15c73456500709e34ee7eb8b4be97cb to your computer and use it in GitHub Desktop.
Avoiding typos with VictorOps unified logging & log variables.
- log.info(s”escalation [resultSummary: $resultSummary” )
// prints: escalation [resultSummary: ResultSummary(…)
+ log.info(“escalation”, “resultSummary” -> resultSummary)
// prints: escalation :: [resultSummary=ResultSummary(…)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment