clog.h Source File¶
|
API
|
clog.h
157 typedef bool (*NoncomponentLogPredicate)(const void *object, LogLevel logLevel, const char *category);
158 typedef bool (*ComponentLogPredicate)(const cComponent *object, LogLevel logLevel, const char *category);
193 static inline bool runtimeLogPredicate(const void *object, LogLevel logLevel, const char *category)
196 static inline bool runtimeLogPredicate(const cComponent *object, LogLevel logLevel, const char *category)
199 static bool defaultNoncomponentLogPredicate(const void *object, LogLevel logLevel, const char *category);
212 omnetpp::internal::cLogProxy::dummyStream : omnetpp::internal::cLogProxy(object, logLevel, category, __FILE__, __LINE__, __FUNCTION__)
425 static nullstream dummyStream; // EV evaluates to this when in express mode (getEnvir()->disabled())
428 static LogBuffer buffer; // underlying buffer that contains the text that has been written so far
429 static std::ostream stream; // this singleton is used to avoid allocating a new stream each time a log statement executes
430 static cLogEntry currentEntry; // context of the current (last) log statement that has been executed.
435 void fillEntry(LogLevel logLevel, const char *category, const char *sourceFile, int sourceLine, const char *sourceFunction);
438 cLogProxy(const void *sourcePointer, LogLevel logLevel, const char *category, const char *sourceFile, int sourceLine, const char *sourceFunction);
439 cLogProxy(const cObject *sourceObject, LogLevel logLevel, const char *category, const char *sourceFile, int sourceLine, const char *sourceFunction);
440 cLogProxy(const cComponent *sourceComponent, LogLevel logLevel, const char *category, const char *sourceFile, int sourceLine, const char *sourceFunction);
This class holds various data that is captured when a particular log statement executes....
Definition clog.h:377
static ComponentLogPredicate componentLogPredicate
Definition clog.h:180
static LogLevel resolveLogLevel(const char *name)
static NoncomponentLogPredicate noncomponentLogPredicate
Definition clog.h:173
static const char * getLogLevelName(LogLevel logLevel)
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition cobject.h:93
LogLevel
Classifies log messages based on detail and importance.
Definition clog.h:34
Generated on for API by