Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfError::DebugMessage ( const char *  pszMsg,
  ... 
) [static]

Log a message to the logging system defined for PoDoFo for debugging

Parameters:
pszMsgthe message to be logged

Definition at line 607 of file PdfError.cpp.

References DebugEnabled(), and PoDoFo::eLogSeverity_Debug.

Referenced by PoDoFo::PdfVecObjects::AddFreeObject(), PoDoFo::PdfEncryptAES::AES(), PoDoFo::PdfDate::CreateStringRepresentation(), PoDoFo::PdfTokenizer::DetermineDataType(), PoDoFo::PdfFontType1::EmbedSubsetFont(), PoDoFo::PdfFontMetrics::FontTypeFromFilename(), PoDoFo::PdfPage::GetAnnotation(), PoDoFo::PdfParser::ReadObjects(), PoDoFo::PdfParser::ReadTrailer(), PoDoFo::PdfParser::ReadXRefContents(), PoDoFo::PdfParser::ReadXRefSubsection(), PoDoFo::PdfParser::SetPassword(), PoDoFo::PdfXRefStream::WriteSubSection(), and PoDoFo::PdfXRef::WriteSubSection().

{
      if ( !PdfError::DebugEnabled() )          
            return;

      const char* pszPrefix = "DEBUG: ";

      va_list  args;
      va_start( args, pszMsg );

    // OC 17.08.2010 New to optionally replace stderr output by a callback:
    if ( m_fLogMessageCallback != NULL )
    {
        m_fLogMessageCallback->LogMessage(eLogSeverity_Debug, pszPrefix, pszMsg, args);
        return;
    }

      if( pszPrefix )
            fprintf( stderr, "%s", pszPrefix );

      vfprintf( stderr, pszMsg, args );
      va_end( args );
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index