GoonCord/src/lib/utils/logger.ts
2024-03-07 12:35:07 +08:00

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");