15 lines
433 B
TypeScript
15 lines
433 B
TypeScript
import { findByProps } from "@metro/filters";
|
|
|
|
export type LoggerFunction = (...messages: any[]) => void;
|
|
export interface Logger {
|
|
log: LoggerFunction;
|
|
info: LoggerFunction;
|
|
warn: LoggerFunction;
|
|
error: LoggerFunction;
|
|
time: LoggerFunction;
|
|
trace: LoggerFunction;
|
|
verbose: LoggerFunction;
|
|
}
|
|
|
|
export const logModule = findByProps("setLogFn").default;
|
|
export const logger: Logger = new logModule("Bunny");
|