scc 2025.09
SystemC components library
logging Namespace Reference

SCC C++ logging. More...

Classes

struct  LoggerCallbacks
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 More...

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.

Enumeration Type Documentation

◆ log_level

enum defining the log levels

Definition at line 53 of file logging.h.

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 59 of file logging.h.

◆ now_time()

std::string logging::now_time ( )
inline

get the current host time as string

Returns

Definition at line 328 of file logging.h.

◆ operator<<()

template<typename T>
std::ostream & logging::operator<< ( std::ostream & stream,
const std::vector< T > & vector )

a print function for a vector

Definition at line 345 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 70 of file logging.h.