ZeroErr
载入中...
搜索中...
未找到
log.cpp 文件参考
#include "zeroerr/log.h"
#include "zeroerr/internal/threadsafe.h"
#include <iomanip>
#include <unordered_set>
#include <sys/stat.h>
log.cpp 的引用(Include)关系图:

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
 

宏定义说明

◆ zeroerr_color

#define zeroerr_color (   x)    (colorful ? x : "")

变量说明

◆ ZEROERR_LOG_CATEGORY

const char* ZEROERR_LOG_CATEGORY = "default"