Use ScribeLogger from flipper-common
Summary: It removes the ScribeLogger found in flipper-ui-core and also updates its references to point to the type defined in flipper-common. Reviewed By: passy Differential Revision: D48556328 fbshipit-source-id: 525d9e8ee9a80f68aecb8b8b2e25ffd4714649bd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9ae632ba5c
commit
cc28b5aea7
@@ -13,7 +13,7 @@
|
|||||||
* so that all logged errors get reported to this class.
|
* so that all logged errors get reported to this class.
|
||||||
*/
|
*/
|
||||||
export function cleanStack(_stack: string, _loc?: string) {}
|
export function cleanStack(_stack: string, _loc?: string) {}
|
||||||
import ScribeLogger from './ScribeLogger';
|
import {ScribeLogger} from 'flipper-common';
|
||||||
|
|
||||||
export default class ErrorReporter {
|
export default class ErrorReporter {
|
||||||
constructor(_scribeLogger: ScribeLogger) {}
|
constructor(_scribeLogger: ScribeLogger) {}
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*
|
|
||||||
* @format
|
|
||||||
*/
|
|
||||||
|
|
||||||
export type ScribeMessage = {
|
|
||||||
category: string;
|
|
||||||
message: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default class ScribeLogger {
|
|
||||||
constructor() {}
|
|
||||||
send(_message: ScribeMessage) {}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user