87 lines
1.6 KiB
C#
87 lines
1.6 KiB
C#
#if !NOT_CLIENT
|
|
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace ET
|
|
{
|
|
public class CommonLogger: ILog
|
|
{
|
|
public void Trace(string msg)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(msg);
|
|
#endif
|
|
}
|
|
|
|
public void Debug(string msg)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(msg);
|
|
#endif
|
|
}
|
|
|
|
public void Info(string msg)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(msg);
|
|
#endif
|
|
}
|
|
|
|
public void Warning(string msg)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(msg);
|
|
#endif
|
|
}
|
|
|
|
public void Error(string msg)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(msg);
|
|
#endif
|
|
}
|
|
|
|
public void Error(Exception e)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(e);
|
|
#endif
|
|
}
|
|
|
|
public void Trace(string message, params object[] args)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(message,args);
|
|
#endif
|
|
}
|
|
|
|
public void Warning(string message, params object[] args)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(message, args);
|
|
#endif
|
|
}
|
|
|
|
public void Info(string message, params object[] args)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(message, args);
|
|
#endif
|
|
}
|
|
|
|
public void Debug(string message, params object[] args)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(message, args);
|
|
#endif
|
|
}
|
|
|
|
public void Error(string message, params object[] args)
|
|
{
|
|
#if !ROBOT
|
|
Console.WriteLine(message, args);
|
|
#endif
|
|
}
|
|
}
|
|
}
|
|
#endif |