LogExecute.cs
860 Bytes
using HslCommunication.LogNet;
namespace HH_WCS_Standard
{
public class LogExecute
{
public static ILogNet logNet = new LogNetDateTime("D:\\Log\\Logs", GenerateMode.ByEveryDay);
public static ILogNet SrmlogNet = new LogNetDateTime("D:\\Log\\SrmLogs", GenerateMode.ByEveryDay);
public static ILogNet ApilogNet = new LogNetDateTime("D:\\Log\\Apilogs", GenerateMode.ByEveryHour);
public static HslCommunication.BasicFramework.SoftNumericalOrder softNumericalOrder = new HslCommunication.BasicFramework.SoftNumericalOrder("", "yyyyMMdd", 4, @"\numericalOrder.txt");
public LogExecute()
{
#region 日志
//设置日志发布等级及触发时间
logNet.SetMessageDegree(HslMessageDegree.INFO);//除DEBUG外,都存储
#endregion 日志
}
}
}