StartupLogTopic.cs 770 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.ObjectModel;
  3. using Microsoft.Extensions.Logging;
  4. namespace Jellyfin.Server.ServerSetupApp;
  5. /// <summary>
  6. /// Defines a topic for the Startup UI.
  7. /// </summary>
  8. public class StartupLogTopic
  9. {
  10. /// <summary>
  11. /// Gets or Sets the LogLevel.
  12. /// </summary>
  13. public LogLevel LogLevel { get; set; }
  14. /// <summary>
  15. /// Gets or Sets the descriptor for the topic.
  16. /// </summary>
  17. public string? Content { get; set; }
  18. /// <summary>
  19. /// Gets or sets the time the topic was created.
  20. /// </summary>
  21. public DateTimeOffset DateOfCreation { get; set; }
  22. /// <summary>
  23. /// Gets the child items of this topic.
  24. /// </summary>
  25. public Collection<StartupLogTopic> Children { get; } = [];
  26. }