You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
703 B
C#

using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Txgy.EWS.Client.ILog;
namespace Txgy.EWS.Client.Log
{
public class LogHelper : ILogHelper
{
public void Debug(object source, string msg)
{
//// 控制台的
//Console.WriteLine("");
//// 写文件
log4net.ILog Logger = LogManager.GetLogger(source.GetType());
Logger.Debug(msg);
}
public void Error(object source, string msg)
{
log4net.ILog Logger = LogManager.GetLogger(source.GetType());
Logger.Error(msg);
}
}
}