/**
 * Production-safe logger.
 * - In development: all levels log normally
 * - In production: only errors log (warnings suppressed, logs suppressed)
 */
const isDev = import.meta.env.DEV;

export const logger = {
  log: (...args: unknown[]): void => {
    if (isDev) console.log(...args);
  },
  warn: (...args: unknown[]): void => {
    if (isDev) console.warn(...args);
  },
  error: (...args: unknown[]): void => {
    console.error(...args);
  },
};
