cs-codex-dist-tests/Logging/NullLog.cs

40 lines
749 B
C#
Raw Permalink Normal View History

2023-06-26 13:37:16 +00:00
namespace Logging
2023-06-22 08:17:12 +00:00
{
public class NullLog : TestLog
{
public NullLog() : base("NULL", false, "NULL")
{
}
2023-06-28 13:11:20 +00:00
protected override string GetFullName()
2023-06-22 08:17:12 +00:00
{
2023-06-28 13:11:20 +00:00
return "NULL";
2023-06-22 08:17:12 +00:00
}
public override void Log(string message)
{
}
public override void Debug(string message = "", int skipFrames = 0)
{
}
public override void Error(string message)
{
Console.WriteLine("Error: " + message);
}
public override void MarkAsFailed()
{
}
public override void AddStringReplace(string from, string to)
{
}
public override void Delete()
{
}
}
}