28 lines
569 B
C#
28 lines
569 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
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)
|
|
{
|
|
Debug.WriteLine(BuildStandardLogEntry(message, category, priority)); //写入日志
|
|
}
|
|
|
|
public override string ReadLog()
|
|
{
|
|
return "";
|
|
}
|
|
|
|
}
|
|
}
|