Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jschwietert/62149dd6ebd941ebce9dae0330effeb9 to your computer and use it in GitHub Desktop.
Save jschwietert/62149dd6ebd941ebce9dae0330effeb9 to your computer and use it in GitHub Desktop.
Reuse, codified formatting, and maintainability improvements with VictorOps unified logging.
+ override def classLogVariables: LogVariables = Seq(“org” -> orgSlug, “incidentId” -> incidentId, “policy” -> policySlug)
+
override def preStart(): Unit = {
- log.info(s”Starting EscalationPolicyActor [org=$orgSlug] [incidentId=$incidentId] [policy=$policySlug]”)
+ log.info(“Starting EscalationPolicyActor”)
super.preStart()
}
override def postStop(): Unit = {
- log.info(s”Stopping EscalationPolicyActor [org=$orgSlug] [incidentId=$incidentId] [policy=$policySlug]”)
+ log.info(“Stopping EscalationPolicyActor”)
super.postStop()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment