Public Member Functions | Protected Member Functions | List of all members
istd::ILogger Class Reference

Common interface for classes sending some log info. More...

#include <ILogger.h>

Inheritance diagram for istd::ILogger:
istd::IPolymorphic ilog::CLoggerBase iser::CArchiveBase ilog::TLoggerCompWrap< Base > ilog::TLoggerCompWrap< CFileTypeInfoComp > ilog::TLoggerCompWrap< ifile::CRelativeFileNameParamComp > iser::CReadArchiveBase iser::CWriteArchiveBase ibase::CConsoleApplicationComp idoc::CMultiPageDocumentFilePersistenceComp ifile::CAutoPersistenceComp ifile::CFileListProviderComp ifile::CFileSystemInfoProviderComp ifilegui::CFileDialogLoaderComp iimg::CBitmapLoaderComp ipackage::CPackagesLoaderComp ipackage::CRegistriesManagerComp ipackage::CRegistryCodeSaverComp iqt::CClipboardSerializerComp iqt::CSettingsSerializerComp iqt::CTranslationManagerComp iqtgui::CProcessStartCommandComp ifile::CFileSerializerCompBase ifile::CGeneratedFileNameParamComp iser::CBinaryReadArchiveBase iser::CTextReadArchiveBase iser::CBinaryWriteArchiveBase iser::CTextWriteArchiveBase

Public Member Functions

virtual bool IsLogConsumed (const IInformationProvider::InformationCategory *categoryPtr=NULL, const int *flagsPtr=NULL) const
 Check if any log message is consumed. More...
 
virtual bool SendLogMessage (IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const
 Send any message to log. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

virtual void DecorateMessage (IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const
 Decorate message parts before outputting. More...
 

Detailed Description

Common interface for classes sending some log info.

Default implementation is provided for convinience and it does nothing.

Definition at line 20 of file ILogger.h.

Member Function Documentation

void istd::ILogger::DecorateMessage ( IInformationProvider::InformationCategory  category,
int  id,
int  flags,
QString &  message,
QString &  messageSource 
) const
inlineprotectedvirtual
bool istd::ILogger::IsLogConsumed ( const IInformationProvider::InformationCategory categoryPtr = NULL,
const int *  flagsPtr = NULL 
) const
inlinevirtual

Check if any log message is consumed.

Default implementation retuns false.

Reimplemented in ilog::CLoggerBase.

Definition at line 62 of file ILogger.h.

Referenced by ifile::TFileSerializerComp< ReadArchive, WriteArchive >::ReadArchiveEx::IsLogConsumed(), and ifile::TFileSerializerComp< ReadArchive, WriteArchive >::WriteArchiveEx::IsLogConsumed().

bool istd::ILogger::SendLogMessage ( IInformationProvider::InformationCategory  category,
int  id,
const QString &  message,
const QString &  messageSource,
int  flags = 0 
) const
inlinevirtual

Send any message to log.

Default implementation do nothing.

Parameters
categorymessage category.
idbinary id identifying this message type for automatical processing.
messagemessage text will be send.
messageSourcesource of the message.
Returns
true, if it was possible to send this message and it is 'consumed'.

Reimplemented in ilog::CLoggerBase.

Definition at line 70 of file ILogger.h.

Referenced by ifile::TFileSerializerComp< ReadArchive, WriteArchive >::ReadArchiveEx::SendLogMessage(), and ifile::TFileSerializerComp< ReadArchive, WriteArchive >::WriteArchiveEx::SendLogMessage().


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy