Skip to content

Instantly share code, notes, and snippets.

@melcor76
Created January 27, 2019 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melcor76/11f8ad16b914005cd233ddeacfc4241f to your computer and use it in GitHub Desktop.
Save melcor76/11f8ad16b914005cd233ddeacfc4241f to your computer and use it in GitHub Desktop.
Error handling - slack
import { Injectable } from '@angular/core';
import { SlackService } from './slack.service';
@Injectable({
providedIn: 'root'
})
export class LoggingService {
constructor(private slackService: SlackService) { }
logError(message: string, stack: string) {
this.slackService.postErrorOnSlack(message, stack);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment