添加项目文件。

This commit is contained in:
liming 蔡
2026-07-14 13:55:17 +08:00
parent 63759495f2
commit 8bbdf78731
335 changed files with 81415 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
using log4net;
using System;
namespace JY.Inspection
{
internal class Log4Helper
{
public static void WriteLog(Type t, Exception ex)
{
ILog log = LogManager.GetLogger(t);
log.Error(ex);
}
public static void WriteLog(Type t, string msg)
{
ILog log = LogManager.GetLogger(t);
log.Info(msg);
}
public static void WriteLog(string className, Exception ex)
{
ILog log = LogManager.GetLogger(className);
log.Error(ex);
}
public static void WriteLog(string className, string msg)
{
ILog log = LogManager.GetLogger(className);
log.Info(msg);
}
}
}