Created
July 19, 2017 18:49
-
-
Save jschwietert/62149dd6ebd941ebce9dae0330effeb9 to your computer and use it in GitHub Desktop.
Reuse, codified formatting, and maintainability improvements with VictorOps unified logging.
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
+ 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