Public Types | Protected Member Functions | List of all members
ilog::TLoggerCompWrap< Base > Class Template Reference

Wrapper provider of log-functionality for component based implementations. More...

#include <TLoggerCompWrap.h>

Inheritance diagram for ilog::TLoggerCompWrap< Base >:
ilog::CLoggerBase ilog::ILoggable istd::ILogger istd::IPolymorphic istd::IPolymorphic 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

Public Types

typedef Base BaseClass
 
typedef ilog::CLoggerBase BaseClass2
 

Protected Member Functions

bool IsVerboseEnabled () const
 Check if verbose messages are enabled. More...
 
void SendVerboseMessage (const QString &message, const QString &messageSource=QString()) const
 Send verbose message. More...
 
virtual void DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const
 Decorate message parts before outputting. More...
 
virtual void OnComponentCreated ()
 
virtual void OnComponentDestroyed ()
 
- Protected Member Functions inherited from ilog::CLoggerBase
bool SendInfoMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send info message to log. More...
 
bool SendWarningMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send warning message to log. More...
 
bool SendErrorMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send error message to log. More...
 
bool SendCriticalMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send critical message to log. More...
 
bool SendInfoMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once info message to log. More...
 
bool SendWarningMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once warning message to log. More...
 
bool SendErrorMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once error message to log. More...
 
bool SendCriticalMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const
 Send once critical message to log. More...
 
bool SendUserMessage (const istd::IInformationProvider *messagePtr) const
 Send message with user object. More...
 
bool AllowMessageOnceAgain (int id)
 Reset message lock. More...
 
virtual bool IsLogConsumed (const istd::IInformationProvider::InformationCategory *categoryPtr=NULL, const int *flagsPtr=NULL) const
 Check if any log message is consumed. More...
 
virtual bool SendLogMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const
 Send any message to log. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilog::CLoggerBase
 CLoggerBase ()
 
virtual void SetLogPtr (ilog::IMessageConsumer *logPtr)
 Install log. More...
 
virtual ilog::IMessageConsumerGetLogPtr () const
 Get log. More...
 
virtual void SetTracingEnabled (bool trace)
 Enable/disable tracing. More...
 
virtual bool IsTracingEnabled () const
 Returns true if tracing enabled. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Protected Attributes inherited from ilog::CLoggerBase
QSet< int > m_onceMessageIds
 

Detailed Description

template<class Base>
class ilog::TLoggerCompWrap< Base >

Wrapper provider of log-functionality for component based implementations.

Definition at line 21 of file TLoggerCompWrap.h.

Member Typedef Documentation

template<class Base>
typedef Base ilog::TLoggerCompWrap< Base >::BaseClass

Definition at line 26 of file TLoggerCompWrap.h.

template<class Base>
typedef ilog::CLoggerBase ilog::TLoggerCompWrap< Base >::BaseClass2

Definition at line 27 of file TLoggerCompWrap.h.

Member Function Documentation

template<class Base >
void ilog::TLoggerCompWrap< Base >::DecorateMessage ( istd::IInformationProvider::InformationCategory  category,
int  id,
int  flags,
QString &  message,
QString &  messageSource 
) const
protectedvirtual

Decorate message parts before outputting.

It is designed to be overloaded if you want to change the decoration.

Reimplemented from ilog::CLoggerBase.

Definition at line 88 of file TLoggerCompWrap.h.

References icomp::CComponentContext::GetContextId(), and NULL.

template<class Base >
bool ilog::TLoggerCompWrap< Base >::IsVerboseEnabled ( ) const
protected

Check if verbose messages are enabled.

Definition at line 68 of file TLoggerCompWrap.h.

References istd::IInformationProvider::IC_NONE.

template<class Base >
void ilog::TLoggerCompWrap< Base >::OnComponentCreated ( )
protectedvirtual
template<class Base >
void ilog::TLoggerCompWrap< Base >::OnComponentDestroyed ( )
protectedvirtual
template<class Base >
void ilog::TLoggerCompWrap< Base >::SendVerboseMessage ( const QString &  message,
const QString &  messageSource = QString() 
) const
protected

Send verbose message.

If m_verboseEnabledAttrPtr is not enabled, the function does nothing.

Definition at line 77 of file TLoggerCompWrap.h.

References istd::IInformationProvider::IC_NONE.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy