admin
2023-01-02 954ead41d9391bca28a3cc4f9592f73f25b3bbc8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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:
    LogUtil();
    static LogUtil* getInstance();
    log4cpp::Category& getL2Logger();
    static void debug(const char* format, ...);
};