mirror of
https://github.com/yck1509/ConfuserEx
synced 2026-06-08 18:29:44 +00:00
64 lines
1.6 KiB
C#
64 lines
1.6 KiB
C#
using System;
|
|
using dnlib.DotNet;
|
|
|
|
namespace Confuser.Core {
|
|
/// <summary>
|
|
/// An <see cref="ILogger" /> implementation that doesn't actually do any logging.
|
|
/// </summary>
|
|
internal class NullLogger : ILogger {
|
|
/// <summary>
|
|
/// The singleton instance of <see cref="NullLogger" />.
|
|
/// </summary>
|
|
public static readonly NullLogger Instance = new NullLogger();
|
|
|
|
/// <summary>
|
|
/// Prevents a default instance of the <see cref="NullLogger" /> class from being created.
|
|
/// </summary>
|
|
NullLogger() { }
|
|
|
|
/// <inheritdoc />
|
|
public void Debug(string msg) { }
|
|
|
|
/// <inheritdoc />
|
|
public void DebugFormat(string format, params object[] args) { }
|
|
|
|
/// <inheritdoc />
|
|
public void Info(string msg) { }
|
|
|
|
/// <inheritdoc />
|
|
public void InfoFormat(string format, params object[] args) { }
|
|
|
|
/// <inheritdoc />
|
|
public void Warn(string msg) { }
|
|
|
|
/// <inheritdoc />
|
|
public void WarnFormat(string format, params object[] args) { }
|
|
|
|
/// <inheritdoc />
|
|
public void WarnException(string msg, Exception ex) { }
|
|
|
|
/// <inheritdoc />
|
|
public void Error(string msg) { }
|
|
|
|
/// <inheritdoc />
|
|
public void ErrorFormat(string format, params object[] args) { }
|
|
|
|
/// <inheritdoc />
|
|
public void ErrorException(string msg, Exception ex) { }
|
|
|
|
/// <inheritdoc />
|
|
public void Progress(int overall, int progress) { }
|
|
|
|
/// <inheritdoc />
|
|
public void EndProgress() { }
|
|
|
|
/// <inheritdoc />
|
|
public void Finish(bool successful) { }
|
|
|
|
/// <inheritdoc />
|
|
public void BeginModule(ModuleDef module) { }
|
|
|
|
/// <inheritdoc />
|
|
public void EndModule(ModuleDef module) { }
|
|
}
|
|
} |