SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
Logging.h File Reference
#include <QtCore/QLoggingCategory>
#include <QElapsedTimer>
Include dependency graph for Logging.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SEGS_DECLARE_LOGGING_CATEGORY(name)   extern QLoggingCategory &name();
 
#define TIMED_LOG(x, msg)
 

Functions

void setLoggingFilter ()
 
void toggleLogging (QString &category)
 
void dumpLogging ()
 

Macro Definition Documentation

#define SEGS_DECLARE_LOGGING_CATEGORY (   name)    extern QLoggingCategory &name();
#define TIMED_LOG (   x,
  msg 
)
Value:
{\
QDebug log(qDebug());\
log << msg << "..."; \
QElapsedTimer timer;\
timer.start();\
x;\
log << "done in"<<float(timer.elapsed())/1000.0f<<"s";\
}