From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Model/Logging/ILogManager.cs | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 MediaBrowser.Model/Logging/ILogManager.cs (limited to 'MediaBrowser.Model/Logging/ILogManager.cs') diff --git a/MediaBrowser.Model/Logging/ILogManager.cs b/MediaBrowser.Model/Logging/ILogManager.cs new file mode 100644 index 0000000000..e6a10cf181 --- /dev/null +++ b/MediaBrowser.Model/Logging/ILogManager.cs @@ -0,0 +1,56 @@ +using System; +using System.Threading; +using System.Threading.Tasks; + +namespace MediaBrowser.Model.Logging +{ + /// + /// Interface ILogManager + /// + public interface ILogManager + { + /// + /// Gets or sets the log level. + /// + /// The log level. + LogSeverity LogSeverity { get; set; } + + /// + /// Gets or sets the exception message prefix. + /// + /// The exception message prefix. + string ExceptionMessagePrefix { get; set; } + + /// + /// Gets the logger. + /// + /// The name. + /// ILogger. + ILogger GetLogger(string name); + + /// + /// Reloads the logger. + /// + Task ReloadLogger(LogSeverity severity, CancellationToken cancellationToken); + + /// + /// Occurs when [logger loaded]. + /// + event EventHandler LoggerLoaded; + + /// + /// Flushes this instance. + /// + void Flush(); + + /// + /// Adds the console output. + /// + void AddConsoleOutput(); + + /// + /// Removes the console output. + /// + void RemoveConsoleOutput(); + } +} -- cgit v1.2.3