#ifndef _MY_LOG_HPP_
#define _MY_LOG_HPP_
#include "spdlog/spdlog.h"
#include "spdlog/sinks/basic_file_sink.h" // support for basic file logging
#include "spdlog/sinks/rotating_file_sink.h" // support for rotating file logging
#include "spdlog/sinks/stdout_sinks.h"
#include "spdlog/sinks/stdout_color_sinks.h" // or "../stdout_sinks.h" if no colors needed
#include "spdlog/sinks/daily_file_sink.h"
class MyLog
{
public:
static MyLog& GetInstance();
protected:
MyLog();
~MyLog();
private:
MyLog(const MyLog& rhs) {}
MyLog& operator = (const MyLog& rhs) {}
public:
/*
trace = SPDLOG_LEVEL_TRACE,
debug = SPDLOG_LEVEL_DEBUG,
info = SPDLOG_LEVEL_INFO,
warn = SPDLOG_LEVEL_WARN,
err = SPDLOG