log.h File Reference

#include "../string/cstring.h"
#include "../basic_types.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Functions

bool logHasLevel (int level=0)
int getLogLevel (void)
void setLogLevel (int level)
void logMsg (CString &msg, int level=0, ostream &out=cerr)
void logMsg (const char *msg, int level=0, ostream &out=cerr)
void logInfo (CString &msg, int level=0, ostream &out=cerr)
void logInfo (const char *msg, int level=0, ostream &out=cerr)
void logWarning (CString &msg, int level=0, ostream &out=cerr)
void logWarning (const char *msg, int level=0, ostream &out=cerr)
void logError (CString &msg, int level=0, ostream &out=cerr)
void logError (const char *msg, int level=0, ostream &out=cerr)

Function Documentation

int getLogLevel ( void   ) 

getLogLevel () The function return the level used for logging messages.

References logLevel.

void logError ( CString msg,
int  level,
ostream &  out 
)

logError () Output the message to the stream out (default: clog) when the level is equal or larger then the logging level.The function preprends a "[ERROR] " string and ends the message with an end-of-line.

References logLevel.

Referenced by SDF3Flow::computeStorageDistributions(), mapApplicationGraphToArchitectureGraph(), FSMSADF::mapApplicationGraphToArchitectureGraph(), NoCScheduler::schedule(), and SDF3Flow::selectStorageDistribution().

void logError ( const char *  msg,
int  level,
ostream &  out 
)

logError () Output the message to the stream out (default: clog) when the level is equal or larger then the logging level.The function preprends a "[ERROR] " string and ends the message with an end-of-line.

References logLevel.

bool logHasLevel ( int  level  ) 

logHasLevel () The function returns 'true' if the current log level will log a message of the supplied level.

References logLevel.

Referenced by SDF3Flow::estimateLatencyConstraints().

void logInfo ( const char *  msg,
int  level,
ostream &  out 
)

logInfo () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level. The function preprends a "[INFO] " string and ends the message with an end-of-line.

References logLevel.

void logMsg ( const char *  msg,
int  level,
ostream &  out 
)

logMsg () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level.

References logLevel.

void logWarning ( const char *  msg,
int  level,
ostream &  out 
)

logWarning () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level. The function preprends a "[WARNING] " string and ends the message with an end-of-line.

References logLevel.

void logWarning ( CString msg,
int  level,
ostream &  out 
)

logWarning () Output the message to the stream out (default: cerr) when the level is equal or larger then the logging level. The function preprends a "[WARNING] " string and ends the message with an end-of-line.

References logLevel.

void setLogLevel ( int  level  ) 

setLogLevel () The function sets the level used for logging messages.

References logLevel.