Migrate ScribeLogger

Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16691033

fbshipit-source-id: 19da8bea4032e33a9bd219476aa12e2154dc3103
This commit is contained in:
Pascal Hartig
2019-08-09 10:32:36 -07:00
committed by Facebook Github Bot
parent b42abcbb59
commit 2e1dc7d40d
2 changed files with 6 additions and 6 deletions

View File

@@ -11,7 +11,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 './ScribeLogger';
export type ObjectError = export type ObjectError =
| Error | Error

View File

@@ -5,12 +5,12 @@
* @format * @format
*/ */
export type ScribeMessage = {| export type ScribeMessage = {
category: string, category: string;
message: string, message: string;
|}; };
import type {Logger} from '../fb-interfaces/Logger.js'; import {Logger} from '../fb-interfaces/Logger.js';
export default class ScribeLogger { export default class ScribeLogger {
constructor(logger: Logger) {} constructor(logger: Logger) {}