aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs
blob: 9bf9be0a46f62481805f549c936dc985be832c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.ComponentModel.DataAnnotations;
using Microsoft.Extensions.Logging;

namespace Jellyfin.Api.Models.ClientLogDtos
{
    /// <summary>
    /// The client log dto.
    /// </summary>
    public class ClientLogEventDto
    {
        /// <summary>
        /// Gets or sets the event timestamp.
        /// </summary>
        [Required]
        public DateTime Timestamp { get; set; }

        /// <summary>
        /// Gets or sets the log level.
        /// </summary>
        [Required]
        public LogLevel Level { get; set; }

        /// <summary>
        /// Gets or sets the log message.
        /// </summary>
        [Required]
        public string Message { get; set; } = string.Empty;
    }
}