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

29 lines
658 B

using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NFine.Data.Extensions
{
public class LogHelper
{
private ILog logger;
public LogHelper(ILog log)
{
this.logger = log;
}
public void Error(object message)
{
this.logger.Error(message);
DbResultMsg.ReturnMsg = message.ToString();
}
public void Error(object message, Exception e)
{
this.logger.Error(message, e);
DbResultMsg.ReturnMsg = message.ToString();
}
}
}