|
|
@ -44,12 +44,13 @@ enum
|
|
|
|
class DLLEXPORT CDebug : public QDebug
|
|
|
|
class DLLEXPORT CDebug : public QDebug
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit CDebug( unsigned int debugLevel = LOGDEBUG );
|
|
|
|
explicit CDebug( unsigned int debugLevel = LOGDEBUG, const char* func = nullptr );
|
|
|
|
virtual ~CDebug();
|
|
|
|
virtual ~CDebug();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
QString m_msg;
|
|
|
|
QString m_msg;
|
|
|
|
unsigned int m_debugLevel;
|
|
|
|
unsigned int m_debugLevel;
|
|
|
|
|
|
|
|
const char* m_funcinfo = nullptr;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -201,8 +202,8 @@ operator<<( QDebug& s, const DebugMap& t )
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // namespace Logger
|
|
|
|
} // namespace Logger
|
|
|
|
|
|
|
|
|
|
|
|
#define cDebug() ( Logger::CDebug( Logger::LOGDEBUG ) << Q_FUNC_INFO << Logger::Continuation )
|
|
|
|
#define cDebug() Logger::CDebug( Logger::LOGDEBUG, Q_FUNC_INFO )
|
|
|
|
#define cWarning() Logger::CDebug( Logger::LOGWARNING )
|
|
|
|
#define cWarning() Logger::CDebug( Logger::LOGWARNING, Q_FUNC_INFO )
|
|
|
|
#define cError() Logger::CDebug( Logger::LOGERROR )
|
|
|
|
#define cError() Logger::CDebug( Logger::LOGERROR, Q_FUNC_INFO )
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|