#include "log.h"
Functions | |
bool | logHasLevel (int level) |
int | getLogLevel (void) |
void | setLogLevel (int level) |
void | logMsg (CString &msg, int level, ostream &out) |
void | logMsg (const char *msg, int level, ostream &out) |
void | logInfo (CString &msg, int level, ostream &out) |
void | logInfo (const char *msg, int level, ostream &out) |
void | logWarning (CString &msg, int level, ostream &out) |
void | logWarning (const char *msg, int level, ostream &out) |
void | logError (CString &msg, int level, ostream &out) |
void | logError (const char *msg, int level, ostream &out) |
Variables | |
static int | logLevel = 0 |
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 | ( | CString & | 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.
Referenced by SDF3Flow::allocateTDMAtimeSlices(), FSMSADF::SDF3Flow::bindGraphtoTiles(), SDF3Flow::bindSDFGtoTiles(), SDF3Flow::checkInputDesignFlow(), FSMSADF::SDF3Flow::checkInputDesignFlow(), FSMSADF::SDF3Flow::computeStorageDist(), SDF3Flow::computeStorageDistributions(), SDF3Flow::constructStaticOrderScheduleTiles(), FSMSADF::SDF3Flow::constructTileSchedules(), FSMSADF::SDF3Flow::estimateBandwidthConstraint(), SDF3Flow::estimateBandwidthConstraints(), FSMSADF::SDF3Flow::estimateConnectionDelay(), SDF3Flow::estimateLatencyConstraints(), SDF3Flow::estimateStorageConstraints(), FSMSADF::SDF3Flow::estimateStorageDist(), SDF3Flow::extractCommunicationConstraints(), SDF3Flow::optimizeStorageSpaceAllocations(), SDF3Flow::scheduleCommunication(), FSMSADF::SDF3Flow::selectStorageDist(), SDF3Flow::selectStorageDistribution(), and SDF3Flow::updateBandwidthAllocations().
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 | ( | CString & | 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.
Referenced by LoadBalanceBinding::constructStaticOrderSchedules(), SDF3Flow::estimateBandwidthConstraints(), SDF3Flow::estimateLatencyConstraints(), SDF3Flow::estimateStorageConstraints(), FSMSADF::MemoryDimAlgo::estimateStorageDist(), Binding::minimizeStaticOrderSchedules(), LoadBalanceBinding::reconstructStaticOrderSchedules(), FSMSADF::MemoryDimAlgo::selectStorageDist(), SDF3Flow::selectStorageDistribution(), NoCMapping::updateBandwidthAllocations(), and LoadBalanceBinding::updateStorageSpaceAllocation().
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.
Variable Documentation
int logLevel = 0 [static] |
logLevel Global indicating the level from which messages are outputted.
Referenced by getLogLevel(), logError(), logHasLevel(), logInfo(), logMsg(), logWarning(), and setLogLevel().