From 3680049029e6a193eae069596be04ce0fb2b1303 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 05 十一月 2022 17:19:55 +0800
Subject: [PATCH] '增加l2稳定性'

---
 ConsoleApplication/LogUtil.h |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ConsoleApplication/LogUtil.h b/ConsoleApplication/LogUtil.h
index b1ea39e..7a23bb1 100644
--- a/ConsoleApplication/LogUtil.h
+++ b/ConsoleApplication/LogUtil.h
@@ -1,13 +1,22 @@
 #pragma once
 #include <iostream>
 #include <Windows.h>
+#include "log4cpp/Category.hh"
+#include "log4cpp/FileAppender.hh"
+#include "log4cpp/StringQueueAppender.hh"
+#include "log4cpp/BasicLayout.hh"
+#include <log4cpp/PatternLayout.hh>
 using namespace std;
 class LogUtil
 {
+private:
+	static LogUtil* instance;
+
 public:
-	static void info(std::string format, ...);
+	LogUtil();
+	static LogUtil* getInstance();
+	log4cpp::Category& getL2Logger();
 	static void debug(const char* format, ...);
-	static void error(const char* format, ...);
 };
 
 

--
Gitblit v1.8.0