28 lines
631 B
C#
28 lines
631 B
C#
namespace TradingBot.Models;
|
|
|
|
/// <summary>
|
|
/// Represents a log entry with timestamp, severity and message
|
|
/// </summary>
|
|
public class LogEntry
|
|
{
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
|
|
public LogLevel Level { get; set; }
|
|
public string Category { get; set; } = string.Empty;
|
|
public string Message { get; set; } = string.Empty;
|
|
public string? Details { get; set; }
|
|
public string? Symbol { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Log severity levels
|
|
/// </summary>
|
|
public enum LogLevel
|
|
{
|
|
Debug,
|
|
Info,
|
|
Warning,
|
|
Error,
|
|
Trade
|
|
}
|