scc  2024.06
SystemC components library
logging Namespace Reference

SCC C++ logging. More...

Classes

class  Log
 
class  Output2FILE
 
struct  DEFAULT
 the default logging category More...
 

Enumerations

enum  log_level { LEVELS =(DO_ENUM) DBGTRACE = TRACEALL }
 enum defining the log levels
 

Functions

log_level as_log_level (int logLevel)
 
std::istream & operator>> (std::istream &is, log_level &val)
 
std::string now_time ()
 
template<typename T >
std::ostream & operator<< (std::ostream &stream, const std::vector< T > &vector)
 a print function for a vector
 

Detailed Description

SCC C++ logging.

Function Documentation

◆ as_log_level()

log_level logging::as_log_level ( int  logLevel)
inline

safely convert an integer into a log level

Parameters
logLevelthe integer
Returns
the log level

Definition at line 58 of file logging.h.

◆ now_time()

std::string logging::now_time ( )
inline

get the current host time as string

Returns

Definition at line 288 of file logging.h.

◆ operator>>()

std::istream& logging::operator>> ( std::istream &  is,
log_level val 
)
inline

read a log level from input stream e.g. used by boost::lexical_cast

Parameters
isinput stream holding the string representation
valthe value holding the resulting value
Returns
the input stream

Definition at line 69 of file logging.h.