admin
2023-02-09 125db633619a0b4c7bd1d498ea2bf1cefa4f73d3
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, ...);
};