2023-03-06 12:40:07 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace logger
|
|
|
|
{
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
LOG_TYPE_DEBUG = 0,
|
|
|
|
LOG_TYPE_INFO = 1,
|
|
|
|
LOG_TYPE_WARN = 2,
|
2024-07-28 12:26:23 +03:30
|
|
|
LOG_TYPE_ERROR = 3,
|
|
|
|
LOG_TYPE_CONSOLE = 4
|
2023-03-06 12:40:07 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
void write(const int type, std::string str);
|
|
|
|
void write(const int type, const char* fmt, ...);
|
|
|
|
}
|