namespace AIStudio.Tools.Rust;
///
/// A log event the Rust runtime writes to the log file.
///
/// When the event happened, in the round-trip format of TerminalLogger.FormatTransportTimestamp, e.g., 2026-10-09T17:53:54.5629130+00:00. The Rust runtime logs the event with this time; when it cannot read it, the event shows the time it arrived instead.
/// The log level.
/// The category of the log event.
/// The log message.
/// Optional exception message.
/// Optional exception stack trace.
public readonly record struct LogEventRequest(
string Timestamp,
string Level,
string Category,
string Message,
string? Exception,
string? StackTrace
);