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

void PoDoFo::PdfError::LogMessage ( ELogSeverity  eLogSeverity,
const char *  pszMsg,
  ... 
) [static]

Log a message to the logging system defined for PoDoFo.

Parameters:
eLogSeveritythe sevirity of the log message
pszMsgthe message to be logged

Definition at line 467 of file PdfError.cpp.

References PoDoFo::eLogSeverity_Debug, PoDoFo::eLogSeverity_Information, and LoggingEnabled().

Referenced by PoDoFo::PdfNamesTree::AddToDictionary(), PoDoFo::PdfNamesTree::CheckLimits(), PoDoFo::PdfFontFactory::CreateFontForType(), PoDoFo::PdfFontCache::CreateFontObject(), PoDoFo::PdfFlateFilter::DecodeBlockImpl(), PoDoFo::PdfPagesTreeCache::DeletePage(), PoDoFo::PdfPagesTree::DeletePage(), PoDoFo::PdfFontCache::GetFont(), PoDoFo::PdfFontCache::GetFontSubset(), PoDoFo::PdfNamesTree::GetKeyValue(), PoDoFo::PdfPagesTreeCache::GetPage(), PoDoFo::PdfParser::HasLinearizationDict(), PoDoFo::PdfFontMetricsFreetype::InitFromBuffer(), PoDoFo::PdfMemDocument::InitFromParser(), PoDoFo::PdfPagesTree::InsertPage(), PoDoFo::PdfContentsTokenizer::PdfContentsTokenizer(), PoDoFo::PdfElement::PdfElement(), PoDoFo::PdfFontMetricsFreetype::PdfFontMetricsFreetype(), PoDoFo::PdfParser::ReadDocumentStructure(), PoDoFo::PdfParser::ReadObjectsInternal(), PoDoFo::PdfParser::ReadXRefSubsection(), and PoDoFo::PdfParser::UpdateDocumentVersion().

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

#ifdef DEBUG
    const ELogSeverity eMinSeverity = eLogSeverity_Debug;
#else
    const ELogSeverity eMinSeverity = eLogSeverity_Information;
#endif // DEBUG

    // OC 17.08.2010 BugFix: Higher level is lower value
 // if( eLogSeverity < eMinSeverity )
    if( eLogSeverity > eMinSeverity )
        return;

    va_list  args;
    va_start( args, pszMsg );

    LogMessageInternal( eLogSeverity, 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