-
-
Save melcor76/11f8ad16b914005cd233ddeacfc4241f to your computer and use it in GitHub Desktop.
Error handling - slack
This file contains 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
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