btftoolchain
logging.cpp File Reference
#include "helper/logging.h"
#include <fstream>
#include <memory>
#include <filesystem>
Include dependency graph for logging.cpp:

Classes

class  helper::logging::GlobalLogger
 Class for the Logger. More...
 

Namespaces

 helper
 
 helper::logging
 

Functions

void helper::logging::initLogging (LogLevel log_level, const std::string &log_file_path="")
 Initalizes the logging feature. More...
 
std::ostream & helper::logging::printError (const source_location location=source_location::current())
 Writes an error message to the log. More...
 
std::ostream & helper::logging::printWarning (const source_location location=source_location::current())
 Writes a warning message to the log. More...
 
std::ostream & helper::logging::printTrace (const source_location location=source_location::current())
 Writes a trace message to the log. More...
 
std::string helper::logging::logLevelToString (LogLevel log_level)
 Converts the enum LogLevel into string. More...
 
std::string helper::logging::stripSourceFileName (const std::string &file_name)
 Gets the source file name out of the path. More...
 
std::ostream & helper::logging::printLog (LogLevel log_level, const source_location location)
 Prints a log message to the log. More...
 
void helper::logging::flush ()
 Flushes the log. More...