ZeroErr
|
#include "zeroerr/log.h"
#include "zeroerr/internal/threadsafe.h"
#include <iomanip>
#include <unordered_set>
#include <sys/stat.h>
Classes | |
struct | zeroerr::DataBlock |
class | zeroerr::FileLogger |
struct | zeroerr::FileCache |
class | zeroerr::DirectoryLogger |
class | zeroerr::OStreamLogger |
Namespaces | |
zeroerr | |
Macros | |
#define | zeroerr_color(x) (colorful ? x : "") |
Functions | |
void | zeroerr::setLogCustomCallback (LogCustomCallback callback) |
set the log custom callback, this can support custom format of the log message More... | |
void | zeroerr::setLogLevel (LogSeverity level) |
set the log level More... | |
void | zeroerr::setLogCategory (const char *categories) |
set the log category More... | |
void | zeroerr::suspendLog () |
suspend the log to flush to the file More... | |
void | zeroerr::resumeLog () |
resume the log to flush to the file More... | |
Variables | |
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" |