基本Json格式化。
This commit is contained in:
19
util/axc.util.h
Normal file
19
util/axc.util.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef AXC_UTIL_H
|
||||
#define AXC_UTIL_H
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <string>
|
||||
|
||||
struct FormatterArg {
|
||||
int indent{4};
|
||||
std::string file;
|
||||
};
|
||||
|
||||
class AxcUtil
|
||||
{
|
||||
public:
|
||||
static bool initLogger(const std::string& logFile);
|
||||
static std::shared_ptr<spdlog::logger> getLogger();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user