ZeroErr
Loading...
Searching...
No Matches
log.cpp File Reference
#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>
Include dependency graph for log.cpp:

Classes

struct  zeroerr::DataBlock
class  zeroerr::FileLogger
struct  zeroerr::FileCache
class  zeroerr::DirectoryLogger
class  zeroerr::OStreamLogger

Namespaces

namespace  zeroerr

Macros

#define zeroerr_color(x)

Functions

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

Variables

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

Macro Definition Documentation

◆ zeroerr_color

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

Variable Documentation

◆ ZEROERR_LOG_CATEGORY

const char* ZEROERR_LOG_CATEGORY = "default"