/**
 * Logger utility with __DEV__ guard
 * In production builds, all log/warn/debug calls are no-ops.
 * Errors are always logged (they indicate real problems).
 */

/* eslint-disable no-console */

function noop(..._args: unknown[]): void {}

export const logger = {
  log: __DEV__ ? console.log.bind(console) : noop,
  warn: __DEV__ ? console.warn.bind(console) : noop,
  error: console.error.bind(console),
  debug: __DEV__ ? console.debug.bind(console) : noop,
  info: __DEV__ ? console.info.bind(console) : noop,
}
