package com.cameleer.server.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Map;

@Schema(description = "Application log entry")
public record LogEntryResponse(
        @Schema(description = "Log timestamp (ISO-8601)") String timestamp,
        @Schema(description = "Log level (INFO, WARN, ERROR, DEBUG, TRACE)") String level,
        @Schema(description = "Logger name") String loggerName,
        @Schema(description = "Log message") String message,
        @Schema(description = "Thread name") String threadName,
        @Schema(description = "Stack trace (if present)") String stackTrace,
        @Schema(description = "Camel exchange ID (if present)") String exchangeId,
        @Schema(description = "Agent instance ID") String instanceId,
        @Schema(description = "Application ID") String application,
        @Schema(description = "MDC context map") Map<String, String> mdc,
        @Schema(description = "Log source: app or agent") String source
) {}
