OoOJoin  0.0.1
The next generation of out-of-order join operator
Log utils
Collaboration diagram for Log utils:

Classes

class  INTELLI::IntelliLog
 The log functions packed in class. More...
 
class  INTELLI::IntelliLog_FileProtector
 The protector for concurrent log on a file. More...
 

Macros

#define INTELLI_INFO(n)   IntelliLog::log("INFO",n)
 (Macro) To log something as information
 
#define INTELLI_ERROR(n)   IntelliLog::log("ERROR",n)
 (Macro) To log something as error
 
#define INTELLI_WARNING(n)   IntelliLog::log("WARNING",n)
 
#define INTELLI_DEBUG(n)   IntelliLog::log("DEBUG",n)
 (Macro) To log something as debug
 

Functions

static void INTELLI::IntelliLog::log (std::string level, std::string_view message, std::source_location const source=std::source_location::current())
 Produce a log. More...
 
static void INTELLI::IntelliLog::setupLoggingFile (string fname)
 set up the logging file by its name More...
 
void INTELLI::IntelliLog_FileProtector::lock ()
 lock this protector
 
void INTELLI::IntelliLog_FileProtector::unlock ()
 unlock this protector
 
void INTELLI::IntelliLog_FileProtector::openLogFile (string fname)
 try to open a file More...
 
void INTELLI::IntelliLog_FileProtector::appendLogFile (string msg)
 try to appened something to the file, if it's opened More...
 

Detailed Description

This package is used for logging

Function Documentation

◆ appendLogFile()

void INTELLI::IntelliLog_FileProtector::appendLogFile ( string  msg)
inline

try to appened something to the file, if it's opened

Parameters
msgThe message to appened

◆ log()

void INTELLI::IntelliLog::log ( std::string  level,
std::string_view  message,
std::source_location const  source = std::source_location::current() 
)
static

Produce a log.

Parameters
levelThe log level you want to indicate
messageThe log message you want to indicate
sourcereserved
Note
message is automatically appended with a "\n"

◆ openLogFile()

void INTELLI::IntelliLog_FileProtector::openLogFile ( string  fname)
inline

try to open a file

Parameters
fnameThe name of file

◆ setupLoggingFile()

void INTELLI::IntelliLog::setupLoggingFile ( string  fname)
static

set up the logging file by its name

Parameters
fnamethe name of file