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:
Lorenzo Blasa
2023-08-23 07:15:29 -07:00
committed by Facebook GitHub Bot
parent 9ae632ba5c
commit cc28b5aea7
2 changed files with 1 additions and 19 deletions

View File

@@ -13,7 +13,7 @@
* so that all logged errors get reported to this class.
*/
export function cleanStack(_stack: string, _loc?: string) {}
import ScribeLogger from './ScribeLogger';
import {ScribeLogger} from 'flipper-common';
export default class ErrorReporter {
constructor(_scribeLogger: ScribeLogger) {}

View File

@@ -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) {}
}