diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-11-08 07:46:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-08 07:46:51 +0100 |
| commit | 0ee43f897b4c06c23cb741e85908527a46687769 (patch) | |
| tree | 20762ea3a72ff6ae8bdd65a501685216ee279f2b /Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs | |
| parent | 195831ad4a538e0a44714dfdc31bd007ab5c3e66 (diff) | |
| parent | 666e95e27f92eabb15d6ab7ae399bdbb95eeb318 (diff) | |
Merge pull request #5918 from crobibero/client-logger
Add endpoint to log client events
Diffstat (limited to 'Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs')
| -rw-r--r-- | Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs b/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs new file mode 100644 index 000000000..9bf9be0a4 --- /dev/null +++ b/Jellyfin.Api/Models/ClientLogDtos/ClientLogEventDto.cs @@ -0,0 +1,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; + } +} |
