NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
nc::logger Namespace Reference

Namespaces

namespace  detail
 Register a global logger.
 

Data Structures

class  BinaryLogger
 Binary Logger Singleton. More...
 

Functions

void addOutputFileLog (std::filesystem::path logFileName)
 Function to add the name of the output log file. More...
 
 BOOST_LOG_GLOBAL_LOGGER_INIT (fileLogger, boost::log::sources::severity_logger_mt)
 Global intializer and constructor for the global logger Sets the initial sink to console backend and sets the default severity level. More...
 
void setLogLevel (boost::log::trivial::severity_level level)
 Function to set the severity level to report back to console and log file. More...
 

Function Documentation

◆ addOutputFileLog()

void nc::logger::addOutputFileLog ( std::filesystem::path  logFileName)
inline

Function to add the name of the output log file.

Note
This function will attempt to create any parent directories, if necessary
Exceptions
std::runtime_errorif it cannot create the appropiate directories
Parameters
logFileNamepath of log file to write to

◆ BOOST_LOG_GLOBAL_LOGGER_INIT()

nc::logger::BOOST_LOG_GLOBAL_LOGGER_INIT ( fileLogger  ,
boost::log::sources::severity_logger_mt   
)
inline

Global intializer and constructor for the global logger Sets the initial sink to console backend and sets the default severity level.

◆ setLogLevel()

void nc::logger::setLogLevel ( boost::log::trivial::severity_level  level)
inline

Function to set the severity level to report back to console and log file.

Parameters
levellevel at which to report the logs