2021-04-10 19:49:32 +08:00
|
|
|
|
#if !NOT_CLIENT
|
|
|
|
|
using System;
|
2021-04-20 00:25:04 +08:00
|
|
|
|
using System.Diagnostics;
|
2021-04-10 19:49:32 +08:00
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
public class CommonLogger: ILog
|
|
|
|
|
{
|
|
|
|
|
public void Trace(string msg)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(msg);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Debug(string msg)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(msg);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Info(string msg)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(msg);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Warning(string msg)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(msg);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Error(string msg)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(msg);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Error(Exception e)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(e);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Trace(string message, params object[] args)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(message,args);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Warning(string message, params object[] args)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(message, args);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Info(string message, params object[] args)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(message, args);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Debug(string message, params object[] args)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(message, args);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Error(string message, params object[] args)
|
|
|
|
|
{
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#if !ROBOT
|
2021-04-10 19:49:32 +08:00
|
|
|
|
Console.WriteLine(message, args);
|
2021-04-20 00:25:04 +08:00
|
|
|
|
#endif
|
2021-04-10 19:49:32 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif
|