GoonCord/src/lib/utils/logger.ts

17 lines
452 B
TypeScript
Raw Normal View History

2022-10-18 23:04:55 +01:00
import { findByProps } from "@metro/filters";
2024-02-23 15:11:35 +08:00
export type LoggerFunction = (...messages: any[]) => void;
export interface Logger {
log: LoggerFunction;
info: LoggerFunction;
warn: LoggerFunction;
error: LoggerFunction;
time: LoggerFunction;
trace: LoggerFunction;
verbose: LoggerFunction;
}
2023-02-19 22:29:25 +00:00
export const logModule = findByProps("setLogFn").default;
2022-10-18 23:04:55 +01:00
const logger: Logger = new logModule("Vendetta");
export default logger;