@magnetarjs/utils
Version:
Magnetar utils like a logger for easier development
13 lines (12 loc) • 454 B
TypeScript
import type { EventFnSuccess } from '@magnetarjs/types';
/**
* Logs to the console with `console.info` and colors.
*/
export declare function logWithFlair(message: string, ...args: any[]): undefined;
/**
* Logs to the console with `console.groupCollapsed` and colors.
*/
export declare function logWithFlairGroup(title: string, nestedMessage: string, options?: {
preventLogFor: number;
}): undefined;
export declare const logger: EventFnSuccess;