Skip to content

Slack Integration

Pre-release
Pre-release
Compare
Choose a tag to compare
@jongpie jongpie released this 13 Jul 19:42
2eb887e

Logs can now be pushed to Slack!

  • Slack notifications are automatically colored red when a log contains 1 or more exceptions (otherwise, they're colored green)
  • Added new record 'Slack' in custom metadata type LoggerIntegration__mdt to store auth details
  • SlackLogPusher class: handles pushing any LogEntry__c records to Slack where Log__c.PushToSlack__c = true
  • SlackLogPushScheduler class: handles scheduling jobs for pushing logs to Slack. There are 3 static methods to make scheduling easier
    1. scheduleEveryXMinutes(Integer x)
    2. scheduleHourly(Integer startingMinuteInHour)
    3. scheduleHourly(Integer startingMinuteInHour, String jobName)