aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Logging/ILogManager.cs
diff options
context:
space:
mode:
authorAndrew Rabert <ar@nullsum.net>2018-12-27 18:27:57 -0500
committerAndrew Rabert <ar@nullsum.net>2018-12-27 18:27:57 -0500
commita86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 (patch)
treea74f6ea4a8abfa1664a605d31d48bc38245ccf58 /MediaBrowser.Model/Logging/ILogManager.cs
parent9bac3ac616b01f67db98381feb09d34ebe821f9a (diff)
Add GPL modules
Diffstat (limited to 'MediaBrowser.Model/Logging/ILogManager.cs')
-rw-r--r--MediaBrowser.Model/Logging/ILogManager.cs56
1 files changed, 56 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Logging/ILogManager.cs b/MediaBrowser.Model/Logging/ILogManager.cs
new file mode 100644
index 000000000..e6a10cf18
--- /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
+{
+ /// <summary>
+ /// Interface ILogManager
+ /// </summary>
+ public interface ILogManager
+ {
+ /// <summary>
+ /// Gets or sets the log level.
+ /// </summary>
+ /// <value>The log level.</value>
+ LogSeverity LogSeverity { get; set; }
+
+ /// <summary>
+ /// Gets or sets the exception message prefix.
+ /// </summary>
+ /// <value>The exception message prefix.</value>
+ string ExceptionMessagePrefix { get; set; }
+
+ /// <summary>
+ /// Gets the logger.
+ /// </summary>
+ /// <param name="name">The name.</param>
+ /// <returns>ILogger.</returns>
+ ILogger GetLogger(string name);
+
+ /// <summary>
+ /// Reloads the logger.
+ /// </summary>
+ Task ReloadLogger(LogSeverity severity, CancellationToken cancellationToken);
+
+ /// <summary>
+ /// Occurs when [logger loaded].
+ /// </summary>
+ event EventHandler LoggerLoaded;
+
+ /// <summary>
+ /// Flushes this instance.
+ /// </summary>
+ void Flush();
+
+ /// <summary>
+ /// Adds the console output.
+ /// </summary>
+ void AddConsoleOutput();
+
+ /// <summary>
+ /// Removes the console output.
+ /// </summary>
+ void RemoveConsoleOutput();
+ }
+}