Refactor some of the types used by FBLogger into Logger

Summary:
^

This change aims to extract some bits and pieces that are not specific to FBLogger and could be used by other Logger implementations.

Reviewed By: passy

Differential Revision: D36473286

fbshipit-source-id: 57f02d132673dbac97384da4dca51bf3e6fb8738
This commit is contained in:
Lorenzo Blasa
2022-05-24 10:23:42 -07:00
committed by Facebook GitHub Bot
parent a73f736d92
commit 6d2bc5cc9a
4 changed files with 77 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ const instance = {
debug: jest.fn(),
};
export function extractError(...data: Array<any>): {
export function LoggerExtractError(...data: Array<any>): {
message: string;
error: Error;
} {