20 lines
299 B
C
20 lines
299 B
C
|
|
#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
|