import winston from 'winston';
import { env } from '../config/env';

export const logger = winston.createLogger({
  level: env.AGENT_LOG_LEVEL,
  format: winston.format.combine(
    winston.format.timestamp(),
    winston.format.colorize(),
    winston.format.printf(({ timestamp, level, message }) => `${timestamp} ${level}: ${message}`)
  ),
  transports: [new winston.transports.Console()],
});
