You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|