ZeroErr
载入中...
搜索中...
未找到
log.cpp 文件参考
#include <stdexcept>
#include <sstream>
#include <iostream>
#include <chrono>
#include "zeroerr/log.h"
#include "zeroerr/internal/threadsafe.h"
#include <cstdio>
#include <cstddef>
#include <ctime>
#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)

函数

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
std::vector< IContextScope * > zeroerr::_ZEROERR_G_CONTEXT_SCOPE_VECTOR
constexpr size_t zeroerr::LogStreamMaxSize = 64 * 1024 - 16

宏定义说明

◆ zeroerr_color

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

变量说明

◆ ZEROERR_LOG_CATEGORY

const char* ZEROERR_LOG_CATEGORY = "default"