mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-05-25 19:54:26 +00:00
59 lines
1.4 KiB
C#
59 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace DiscordRPC.Logging
|
|
{
|
|
/// <summary>
|
|
/// Ignores all log events
|
|
/// </summary>
|
|
public class NullLogger : ILogger
|
|
{
|
|
/// <summary>
|
|
/// The level of logging to apply to this logger.
|
|
/// </summary>
|
|
public LogLevel Level { get; set; }
|
|
|
|
/// <summary>
|
|
/// Informative log messages
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <param name="args"></param>
|
|
public void Trace(string message, params object[] args)
|
|
{
|
|
//Null Logger, so no messages are acutally sent
|
|
}
|
|
|
|
/// <summary>
|
|
/// Informative log messages
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <param name="args"></param>
|
|
public void Info(string message, params object[] args)
|
|
{
|
|
//Null Logger, so no messages are acutally sent
|
|
}
|
|
|
|
/// <summary>
|
|
/// Warning log messages
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <param name="args"></param>
|
|
public void Warning(string message, params object[] args)
|
|
{
|
|
//Null Logger, so no messages are acutally sent
|
|
}
|
|
|
|
/// <summary>
|
|
/// Error log messsages
|
|
/// </summary>
|
|
/// <param name="message"></param>
|
|
/// <param name="args"></param>
|
|
public void Error(string message, params object[] args)
|
|
{
|
|
//Null Logger, so no messages are acutally sent
|
|
}
|
|
}
|
|
}
|