import pino from 'pino';

export const logger = pino({
  level: process.env['LOG_LEVEL'] ?? 'info',
  base: {
    service: process.env['APP_NAME'] ?? 'HexaHost GameCloud Worker',
    env: process.env['APP_ENV'] ?? 'development',
  },
  timestamp: pino.stdTimeFunctions.isoTime,
});
