ILogListener Class Referenceabstract

Log manager's listener interface. More...

Inheritance diagram for ILogListener:
ILogManager

Public Member Functions

Log level activation
virtual OpenViBE::boolean isActive (OpenViBE::Kernel::ELogLevel eLogLevel)=0
 Tests whether a log level is active or not. More...
 
virtual OpenViBE::boolean activate (OpenViBE::Kernel::ELogLevel eLogLevel, OpenViBE::boolean bActive)=0
 Changes the activation status of a specific log level. More...
 
virtual OpenViBE::boolean activate (OpenViBE::Kernel::ELogLevel eStartLogLevel, OpenViBE::Kernel::ELogLevel eEndLogLevel, OpenViBE::boolean bActive)=0
 Changes the activation status of a specific range of log level. More...
 
virtual OpenViBE::boolean activate (OpenViBE::boolean bActive)=0
 Changes the activation status of all log levels at once. More...
 
Logging function
virtual void log (const OpenViBE::time64 time64Value)=0
 Logs a formatted time value (64 bits unsigned integer) More...
 
virtual void log (const OpenViBE::uint64 ui64Value)=0
 Logs a 64 bits unsigned integer. More...
 
virtual void log (const OpenViBE::uint32 ui32Value)=0
 Logs a 32 bits unsigned integer. More...
 
virtual void log (const OpenViBE::uint16 ui16Value)=0
 Logs a 16 bits unsigned integer. More...
 
virtual void log (const OpenViBE::uint8 ui8Value)=0
 Logs a 8 bits unsigned integer. More...
 
virtual void log (const OpenViBE::int64 i64Value)=0
 Logs a 64 bits signed integer. More...
 
virtual void log (const OpenViBE::int32 i32Value)=0
 Logs a 32 bits signed integer. More...
 
virtual void log (const OpenViBE::int16 i16Value)=0
 Logs a 16 bits signed integer. More...
 
virtual void log (const OpenViBE::int8 i8Value)=0
 Logs a 8 bits signed integer. More...
 
virtual void log (const OpenViBE::float64 f64Value)=0
 Logs a 64 bits floating point value. More...
 
virtual void log (const OpenViBE::float32 f32Value)=0
 Logs a 32 bits floating point value. More...
 
virtual void log (const OpenViBE::boolean bValue)=0
 Logs a boolean value. More...
 
virtual void log (const OpenViBE::CIdentifier &rValue)=0
 Logs an identifier value. More...
 
virtual void log (const OpenViBE::CString &rValue)=0
 Logs an OpenViBE string value. More...
 
virtual void log (const char *rValue)=0
 Logs an ASCII string value. More...
 
Manipulators
virtual void log (const OpenViBE::Kernel::ELogLevel eLogLevel)=0
 Changes the log level. More...
 
virtual void log (const OpenViBE::Kernel::ELogColor eLogColor)=0
 Changes the log color. More...
 

Detailed Description

Log manager's listener interface.

Author
Yann Renard (INRIA/IRISA)
Date
2006-06-03

The log listener is derived and implemented such as it can effectively process the log action. It could do it in a file, in a notification area, or whatever fits your needs. Objects to log are sent to it thanks to the log manager after a listener has been registered to it.

Member Function Documentation

virtual OpenViBE::boolean isActive ( OpenViBE::Kernel::ELogLevel  eLogLevel)
pure virtual

Tests whether a log level is active or not.

Parameters
eLogLevel[in] : the log level which has to be tested
Returns
true if this log level is active.
false if this log level is not active.
virtual OpenViBE::boolean activate ( OpenViBE::Kernel::ELogLevel  eLogLevel,
OpenViBE::boolean  bActive 
)
pure virtual

Changes the activation status of a specific log level.

Parameters
eLogLevel[in] : the log level which status has to be changed
bActive[in] : a boolean telling whether this level should be active or not
Returns
true in case of success.
false in case of error.
virtual OpenViBE::boolean activate ( OpenViBE::Kernel::ELogLevel  eStartLogLevel,
OpenViBE::Kernel::ELogLevel  eEndLogLevel,
OpenViBE::boolean  bActive 
)
pure virtual

Changes the activation status of a specific range of log level.

Parameters
eStartLogLevel[in] : the first log level which status has to be changed
eEndLogLevel[in] : the last log level which status has to be changed
bActive[in] : a boolean telling whether these levels should be active or not
Returns
true in case of success.
false in case of error.
virtual OpenViBE::boolean activate ( OpenViBE::boolean  bActive)
pure virtual

Changes the activation status of all log levels at once.

Parameters
bActive[in] : a boolean telling whether the levels should be active or not
Returns
true in case of success.
false in case of error.
virtual void log ( const OpenViBE::time64  time64Value)
pure virtual

Logs a formatted time value (64 bits unsigned integer)

Parameters
ui64Value[in] : the value that should be logged

Referenced by OpenViBE::Kernel::operator<<().

virtual void log ( const OpenViBE::uint64  ui64Value)
pure virtual

Logs a 64 bits unsigned integer.

Parameters
ui64Value[in] : the value that should be logged
virtual void log ( const OpenViBE::uint32  ui32Value)
pure virtual

Logs a 32 bits unsigned integer.

Parameters
ui32Value[in] : the value that should be logged
virtual void log ( const OpenViBE::uint16  ui16Value)
pure virtual

Logs a 16 bits unsigned integer.

Parameters
ui16Value[in] : the value that should be logged
virtual void log ( const OpenViBE::uint8  ui8Value)
pure virtual

Logs a 8 bits unsigned integer.

Parameters
ui8Value[in] : the value that should be logged
virtual void log ( const OpenViBE::int64  i64Value)
pure virtual

Logs a 64 bits signed integer.

Parameters
i64Value[in] : the value that should be logged
virtual void log ( const OpenViBE::int32  i32Value)
pure virtual

Logs a 32 bits signed integer.

Parameters
i32Value[in] : the value that should be logged
virtual void log ( const OpenViBE::int16  i16Value)
pure virtual

Logs a 16 bits signed integer.

Parameters
i16Value[in] : the value that should be logged
virtual void log ( const OpenViBE::int8  i8Value)
pure virtual

Logs a 8 bits signed integer.

Parameters
i8Value[in] : the value that should be logged
virtual void log ( const OpenViBE::float64  f64Value)
pure virtual

Logs a 64 bits floating point value.

Parameters
f64Value[in] : the value that should be logged
virtual void log ( const OpenViBE::float32  f32Value)
pure virtual

Logs a 32 bits floating point value.

Parameters
f32Value[in] : the value that should be logged
virtual void log ( const OpenViBE::boolean  bValue)
pure virtual

Logs a boolean value.

Parameters
bValue[in] : the value that should be logged
virtual void log ( const OpenViBE::CIdentifier rValue)
pure virtual

Logs an identifier value.

Parameters
rValue[in] : the value that should be logged
virtual void log ( const OpenViBE::CString rValue)
pure virtual

Logs an OpenViBE string value.

Parameters
rValue[in] : the value that should be logged
virtual void log ( const char *  rValue)
pure virtual

Logs an ASCII string value.

Parameters
rValue[in] : the value that should be logged
virtual void log ( const OpenViBE::Kernel::ELogLevel  eLogLevel)
pure virtual

Changes the log level.

Parameters
eLogLevel[in] : the new log level
virtual void log ( const OpenViBE::Kernel::ELogColor  eLogColor)
pure virtual

Changes the log color.

Parameters
eLogColor[in] : the new log color