From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
HMI.Core/Util/LoggerHolder.cs | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/HMI.Core/Util/LoggerHolder.cs b/HMI.Core/Util/LoggerHolder.cs
new file mode 100644
index 0000000..1dba821
--- /dev/null
+++ b/HMI.Core/Util/LoggerHolder.cs
@@ -0,0 +1,37 @@
+锘縰sing HMI.Core.Api;
+
+namespace HMI.Core.Util
+{
+ public class LoggerHelper
+ {
+ public static ILogWriter Logger { get; private set; }
+
+ public static void Register(ILogWriter logger)
+ {
+ if (Logger == null)
+ {
+ Logger = logger;
+ }
+ }
+
+ public static void Debug(string source, string content)
+ {
+ Logger?.Debug(source, content);
+ }
+
+ public static void Info(string source, string content)
+ {
+ Logger?.Info(source, content);
+ }
+
+ public static void Warn(string source, string content)
+ {
+ Logger?.Warn(source, content);
+ }
+
+ public static void Error(string source, string content)
+ {
+ Logger?.Error(source, content);
+ }
+ }
+}
--
Gitblit v1.9.1