/* eslint-disable no-console */
const isDebug = !!process.env.NEXT_PUBLIC_DEBUG;
const noop = () => undefined;
export function createLogger(prefix) {
    return {
        info: isDebug ? (...args) => console.info(prefix, ...args) : noop,
        debug: isDebug ? (...args) => console.debug(prefix, ...args) : noop,
        warn: (...args) => console.warn(prefix, ...args),
        error: (...args) => console.error(prefix, ...args),
    };
}
