Plane.Libraries/Plane/Logging/DebugLogger.cs

28 lines
569 B
C#
Raw Permalink Normal View History

2018-08-03 11:43:10 +08:00
using System;
using System.Diagnostics;
2017-02-27 02:04:13 +08:00
namespace Plane.Logging
{
public class DebugLogger : Logger
{
public DebugLogger()
{
}
public DebugLogger(ILogger loggerToDecorate) : base(loggerToDecorate)
{
}
protected override void LogCore(string message, Category category, Priority priority)
{
2018-05-12 23:16:57 +08:00
Debug.WriteLine(BuildStandardLogEntry(message, category, priority)); //写入日志
2017-02-27 02:04:13 +08:00
}
2018-08-03 11:43:10 +08:00
public override string ReadLog()
{
return "";
}
2017-02-27 02:04:13 +08:00
}
}