@hirebus/academy
Version:
React component library for academy and learning platforms
17 lines (16 loc) • 529 B
TypeScript
/**
* Minimal logger utility.
*
* • In production (`NODE_ENV === 'production'` or `import.meta.env.PROD`) most logs are silenced
* except `error` & `warn` which are always forwarded.
* • In development the logger proxies to the respective `console` methods.
*/
type LogMethod = (...args: unknown[]) => void;
export declare const logger: {
readonly debug: LogMethod;
readonly info: LogMethod;
readonly warn: LogMethod;
readonly error: LogMethod;
};
export declare const debugLog: LogMethod;
export {};