mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-05-25 20:24:27 +00:00
47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace DiscordRPC.Logging
|
|
{
|
|
/// <summary>
|
|
/// Logging interface to log the internal states of the pipe. Logs are sent in a NON thread safe way. They can come from multiple threads and it is upto the ILogger to account for it.
|
|
/// </summary>
|
|
public interface ILogger
|
|
{
|
|
/// <summary>
|
|
/// The level of logging to apply to this logger.
|
|
/// </summary>
|
|
LogLevel Level { get; set; }
|
|
|
|
/// <summary>
|
|
/// Debug trace messeages used for debugging internal elements.
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <param name="args"></param>
|
|
void Trace(string message, params object[] args);
|
|
|
|
/// <summary>
|
|
/// Informative log messages
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <param name="args"></param>
|
|
void Info(string message, params object[] args);
|
|
|
|
/// <summary>
|
|
/// Warning log messages
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <param name="args"></param>
|
|
void Warning(string message, params object[] args);
|
|
|
|
/// <summary>
|
|
/// Error log messsages
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <param name="args"></param>
|
|
void Error(string message, params object[] args);
|
|
}
|
|
}
|