Files
MES_PLC_Control/WindowsFormsApp1/server/LogExecute.cs
T
zhougf 083c4ec3ac 3.25 测试
改端子扫码,产线页面,主页
2025-03-25 21:22:36 +08:00

29 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HslCommunication.LogNet;
namespace WindowsFormsApp1.server
{
public class LogExecute
{
public static ILogNet logNet = new LogNetDateTime("C:\\Log\\Logs", GenerateMode.ByEveryDay);
public static ILogNet PlclogNet = new LogNetDateTime("C:\\Log\\PlcLogs", GenerateMode.ByEveryDay);
public static ILogNet ApilogNet = new LogNetDateTime("C:\\Log\\Apilogs", GenerateMode.ByEveryHour);
public static ILogNet SNlogNet = new LogNetDateTime("C:\\Log\\SNlogs", GenerateMode.ByEveryDay);
public static HslCommunication.BasicFramework.SoftNumericalOrder softNumericalOrder = new HslCommunication.BasicFramework.SoftNumericalOrder("", "yyyyMMdd", 4, @"\numericalOrder.txt");
public LogExecute()
{
#region 日志
//设置日志发布等级及触发时间
//logNet.SetMessageDegree(HslMessageDegree.INFO);//除DEBUG外,都存储
#endregion 日志
}
}
}