diff options
| author | JPVenson <github@jpb.email> | 2025-06-05 17:59:11 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-05 08:59:11 -0600 |
| commit | 88332e89c458266bc073d3304eafcb23603f15fa (patch) | |
| tree | f067cdc997219a1a15e11356ef7aa31b466d7bba /Jellyfin.Server/ServerSetupApp/IStartupLogger.cs | |
| parent | a3578caa8c71c84b278e18a07ebc157bcf04c687 (diff) | |
Feature/version check in library migration (#14105)
Diffstat (limited to 'Jellyfin.Server/ServerSetupApp/IStartupLogger.cs')
| -rw-r--r-- | Jellyfin.Server/ServerSetupApp/IStartupLogger.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Jellyfin.Server/ServerSetupApp/IStartupLogger.cs b/Jellyfin.Server/ServerSetupApp/IStartupLogger.cs new file mode 100644 index 000000000..2c2ef05f8 --- /dev/null +++ b/Jellyfin.Server/ServerSetupApp/IStartupLogger.cs @@ -0,0 +1,25 @@ +using System; +using Morestachio.Helper.Logging; +using ILogger = Microsoft.Extensions.Logging.ILogger; + +namespace Jellyfin.Server.ServerSetupApp; + +/// <summary> +/// Defines the Startup Logger. This logger acts an an aggregate logger that will push though all log messages to both the attached logger as well as the startup UI. +/// </summary> +public interface IStartupLogger : ILogger +{ + /// <summary> + /// Adds another logger instance to this logger for combined logging. + /// </summary> + /// <param name="logger">Other logger to rely messages to.</param> + /// <returns>A combined logger.</returns> + IStartupLogger With(ILogger logger); + + /// <summary> + /// Opens a new Group logger within the parent logger. + /// </summary> + /// <param name="logEntry">Defines the log message that introduces the new group.</param> + /// <returns>A new logger that can write to the group.</returns> + IStartupLogger BeginGroup(FormattableString logEntry); +} |
