First commit

This commit is contained in:
EnderIce2
2020-10-25 16:19:43 +02:00
parent 9d78d84acb
commit b91db81473
73 changed files with 7634 additions and 0 deletions

View File

@ -0,0 +1,46 @@
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);
}
}