@ -27,8 +27,14 @@
namespace Logger
namespace Logger
{
{
DLLEXPORT extern const char Continuation [ ] ;
struct FuncSuppressor
DLLEXPORT extern const char SubEntry [ ] ;
{
explicit constexpr FuncSuppressor ( const char [ ] ) ;
const char * m_s ;
} ;
DLLEXPORT extern const FuncSuppressor Continuation ;
DLLEXPORT extern const FuncSuppressor SubEntry ;
enum
enum
{
{
@ -47,12 +53,27 @@ public:
explicit CDebug ( unsigned int debugLevel = LOGDEBUG , const char * func = nullptr ) ;
explicit CDebug ( unsigned int debugLevel = LOGDEBUG , const char * func = nullptr ) ;
virtual ~ CDebug ( ) ;
virtual ~ CDebug ( ) ;
friend QDebug & operator < < ( CDebug & & , const FuncSuppressor & ) ;
private :
private :
QString m_msg ;
QString m_msg ;
unsigned int m_debugLevel ;
unsigned int m_debugLevel ;
const char * m_funcinfo = nullptr ;
const char * m_funcinfo = nullptr ;
} ;
} ;
inline QDebug &
operator < < ( CDebug & & s , const FuncSuppressor & f )
{
s . m_funcinfo = nullptr ;
return s < < f . m_s ;
}
inline QDebug &
operator < < ( QDebug & s , const FuncSuppressor & f )
{
return s < < f . m_s ;
}
/**
/**
* @ brief The full path of the log file .
* @ brief The full path of the log file .
*/
*/