59void QgsLogger::debug( 
const QString &msg, 
int debuglevel, 
const char *file, 
const char *function, 
int line )
 
   63  if ( !file && !sFileFilter()->isEmpty() && !sFileFilter()->endsWith( file ) )
 
   66  if ( sDebugLevel == 0 || debuglevel > sDebugLevel )
 
   74    if ( qApp && qApp->thread() != QThread::currentThread() )
 
   76      m.prepend( QStringLiteral( 
"[thread:0x%1] " ).arg( 
reinterpret_cast< qint64 
>( QThread::currentThread() ), 0, 16 ) );
 
   79    m.prepend( QStringLiteral( 
"[%1ms] " ).arg( sTime()->elapsed() ) );
 
   84      m.prepend( QStringLiteral( 
" (%1) " ).arg( function ) );
 
   90      m.prepend( QStringLiteral( 
":%1 :" ).arg( line ) );
 
   92      m.prepend( QString( 
"(%1) :" ).arg( line ) );
 
   97    m.prepend( file + ( file[0] == 
'/' ? sPrefixLength : 0 ) );
 
  103  if ( sLogFile()->isEmpty() )
 
  105    if ( debuglevel == 0 )
 
  108      std::cerr << m.toUtf8().constData() << std::endl;
 
  112      qDebug( 
"%s", m.toUtf8().constData() );
 
 
static void debug(const QString &msg, int debuglevel=1, const char *file=nullptr, const char *function=nullptr, int line=-1)
Goes to qDebug.