|
ZeroErr
|
#include "zeroerr/log.h"#include "zeroerr/internal/threadsafe.h"#include <iomanip>#include <unordered_set>#include <sys/stat.h>
类 | |
| struct | zeroerr::DataBlock |
| class | zeroerr::FileLogger |
| struct | zeroerr::FileCache |
| class | zeroerr::DirectoryLogger |
| class | zeroerr::OStreamLogger |
命名空间 | |
| namespace | zeroerr |
宏定义 | |
| #define | zeroerr_color(x) (colorful ? x : "") |
函数 | |
| void | zeroerr::setLogCustomCallback (LogCustomCallback callback) |
| set the log custom callback, this can support custom format of the log message | |
| void | zeroerr::setLogLevel (LogSeverity level) |
| set the log level | |
| void | zeroerr::setLogCategory (const char *categories) |
| set the log category | |
| void | zeroerr::suspendLog () |
| suspend the log to flush to the file | |
| void | zeroerr::resumeLog () |
| resume the log to flush to the file | |
变量 | |
| const char * | ZEROERR_LOG_CATEGORY = "default" |
| int | zeroerr::_ZEROERR_G_VERBOSE = 0 |
| thread_local std::vector< IContextScope * > | zeroerr::_ZEROERR_G_CONTEXT_SCOPE_VECTOR |
| constexpr size_t | zeroerr::LogStreamMaxSize = 1 * 1024 - 16 |
| #define zeroerr_color | ( | x | ) | (colorful ? x : "") |
| const char* ZEROERR_LOG_CATEGORY = "default" |