import { config } from './config';

/**
 * Simple logger that only logs in development mode
 */
export const logger = {
  log: (...args: any[]) => {
    if (!config.isProduction) {
      console.log(...args);
    }
  },

  info: (...args: any[]) => {
    if (!config.isProduction) {
      console.info(...args);
    }
  },

  error: (...args: any[]) => {
    // Always log errors
    console.error(...args);
  },

  warn: (...args: any[]) => {
    if (!config.isProduction) {
      console.warn(...args);
    }
  },

  debug: (...args: any[]) => {
    if (!config.isProduction) {
      console.debug(...args);
    }
  }
};
