Replace usages of ErrorReporter with Logger

Summary:
At the moment, in sonar we have an error reporter and a Logger.
ErrorReporter can be encapsulated into Logger, so users don't have to decide between logging and reporting errors.

Reviewed By: danielbuechele

Differential Revision: D8531902

fbshipit-source-id: 3986f51ea163ac939f3baffd4db3ab968f2a0762
This commit is contained in:
John Knox
2018-06-20 06:02:49 -07:00
committed by Facebook Github Bot
parent 3d27dc2004
commit 54fa6aa8f2
3 changed files with 11 additions and 8 deletions

View File

@@ -5,6 +5,11 @@
* @format
*/
/*
* This class exists to allow error reporting to your own service.
* The recommended way to use this, is to instantiate it inside LogManager,
* so that all logged errors get reported to this class.
*/
export function cleanStack(stack: string, loc: ?string) {}
import type ScribeLogger from './ScribeLogger';