2013-02-26 17:21:18 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Logging
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface ILogManager
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface ILogManager
|
|
|
|
|
{
|
2013-09-21 01:04:14 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the log level.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The log level.</value>
|
|
|
|
|
LogSeverity LogSeverity { get; set; }
|
|
|
|
|
|
2014-12-17 22:39:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the exception message prefix.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The exception message prefix.</value>
|
|
|
|
|
string ExceptionMessagePrefix { get; set; }
|
|
|
|
|
|
2013-02-26 17:21:18 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the logger.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="name">The name.</param>
|
|
|
|
|
/// <returns>ILogger.</returns>
|
|
|
|
|
ILogger GetLogger(string name);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reloads the logger.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void ReloadLogger(LogSeverity severity);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the log file path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The log file path.</value>
|
|
|
|
|
string LogFilePath { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Occurs when [logger loaded].
|
|
|
|
|
/// </summary>
|
|
|
|
|
event EventHandler LoggerLoaded;
|
2013-10-06 18:48:04 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Flushes this instance.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Flush();
|
2014-01-09 04:44:51 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Adds the console output.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void AddConsoleOutput();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Removes the console output.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void RemoveConsoleOutput();
|
2013-02-26 17:21:18 +00:00
|
|
|
|
}
|
|
|
|
|
}
|