@just-in/core
Version:
A TypeScript-first framework for building adaptive digital health interventions.
26 lines • 940 B
TypeScript
/**
* Interface defining methods for logging at various levels, with optional custom functions.
*/
export interface Logger {
/**
* Logs an informational message.
* @param args - The arguments to log (can be any type of data like strings, objects, etc.).
*/
info?: (...args: any[]) => void;
/**
* Logs a warning message.
* @param args - The arguments to log (can be any type of data like strings, objects, etc.).
*/
warn?: (...args: any[]) => void;
/**
* Logs an error message.
* @param args - The arguments to log (can be any type of data like strings, objects, etc.).
*/
error?: (...args: any[]) => void;
/**
* Logs an development message in env var NODE_ENV === 'dev'.
* @param args - The arguments to log (can be any type of data like strings, objects, etc.).
*/
dev?: (...args: any[]) => void;
}
//# sourceMappingURL=logger.interface.d.ts.map