import { logger } from "@/infrastructure/logger";
import { ApplicationService, IEmailService, ISendEmailOptions } from "../../application";

export class LoggerMailService extends ApplicationService implements IEmailService {
  async sendMail(mailOptions: ISendEmailOptions): Promise<void> {
    await logger().debug(
      `Email no enviado (modo desarrollo):\n${JSON.stringify(mailOptions, null, 2)}\n\n`
    );
  }
}
