Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Logging_impl Class Reference

#include <Logging_impl.h>

Inheritance diagram for Logging_impl:
Resource_impl Component Device_impl frontend::FrontendTunerDevice< TunerStatusStructType > LoadableDevice_impl ExecutableDevice_impl

Classes

class  LogConfigListener
 
class  LogLevelListener
 
class  MemberLogConfigListener
 
class  MemberLogLevelListener
 
class  StaticLogConfigListener
 
class  StaticLogLevelListener
 

Public Types

typedef void(* LogConfigCallbackFn) (const char *config_data)
 
typedef void(* LogLevelCallbackFn) (const char *logid, const CF::LogLevel &)
 

Public Member Functions

 Logging_impl ()
 
virtual ~Logging_impl ()
 
char * getLogConfig ()
 
void setLogConfig (const char *config_contents)
 
void setLogConfigURL (const char *config_url)
 
CF::LogLevel log_level ()
 
void log_level (const CF::LogLevel newLevel)
 
void setLogLevel (const char *logger_id, const CF::LogLevel newLevel) throw (CF::UnknownIdentifier)
 
LOGGER getLogger ()
 
LOGGER getLogger (const std::string &logger_name, const bool assignToResource=false)
 
CF::LogEventSequence * retrieve_records (CORBA::ULong &howMany, CORBA::ULong startingRecord)
 
CF::LogEventSequence * retrieve_records_by_date (CORBA::ULong &howMany, CORBA::ULongLong to_timeStamp)
 
CF::LogEventSequence * retrieve_records_from_date (CORBA::ULong &howMany, CORBA::ULongLong from_timeStamp)
 
void setLoggingMacros (ossie::logging::MacroTable &tbl, bool applyCtx)
 
void setResourceContext (ossie::logging::ResourceCtxPtr ctx)
 
void setLoggingContext (ossie::logging::ResourceCtxPtr ctx)
 
void setLoggingContext (const std::string &url, int loglevel, ossie::logging::ResourceCtxPtr ctx)
 
void saveLoggingContext (const std::string &url, int loglevel, ossie::logging::ResourceCtxPtr ctx)
 

Protected Types

typedef boost::shared_ptr< LogConfigListenerLogConfigListenerPtr
 
typedef boost::shared_ptr< LogLevelListenerLogLevelListenerPtr
 

Protected Member Functions

template<typename T >
void setLogConfigListener (T &target, void(T::*func)(const char *config_data))
 
template<typename T >
void setLogConfigListener (T *target, void(T::*func)(const char *config_data))
 
template<typename T >
void setLogLevelListener (T &target, void(T::*func)(const char *logid, const CF::LogLevel &level))
 
template<typename T >
void setLogLevelListener (T *target, void(T::*func)(const char *logid, const CF::LogLevel &level))
 
virtual void setLogConfigCallback (LogConfigListener *func)
 
virtual void setLogConfigCallback (LogConfigCallbackFn func)
 
virtual void setLogLevelCallback (LogLevelListener *func)
 
virtual void setLogLevelCallback (LogLevelCallbackFn func)
 

Protected Attributes

std::string _logName
 
CF::LogLevel _logLevel
 
LOGGER _logger
 
ossie::logging::MacroTable _loggingMacros
 

Member Typedef Documentation

typedef void(* Logging_impl::LogConfigCallbackFn) (const char *config_data)
typedef boost::shared_ptr< LogConfigListener > Logging_impl::LogConfigListenerPtr
protected
typedef void(* Logging_impl::LogLevelCallbackFn) (const char *logid, const CF::LogLevel &)
typedef boost::shared_ptr< LogLevelListener > Logging_impl::LogLevelListenerPtr
protected

Constructor & Destructor Documentation

Logging_impl::Logging_impl ( )
virtual Logging_impl::~Logging_impl ( )
inlinevirtual

Member Function Documentation

char* Logging_impl::getLogConfig ( )
LOGGER Logging_impl::getLogger ( )
LOGGER Logging_impl::getLogger ( const std::string &  logger_name,
const bool  assignToResource = false 
)
CF::LogLevel Logging_impl::log_level ( )
void Logging_impl::log_level ( const CF::LogLevel  newLevel)
CF::LogEventSequence* Logging_impl::retrieve_records ( CORBA::ULong &  howMany,
CORBA::ULong  startingRecord 
)
CF::LogEventSequence* Logging_impl::retrieve_records_by_date ( CORBA::ULong &  howMany,
CORBA::ULongLong  to_timeStamp 
)
CF::LogEventSequence* Logging_impl::retrieve_records_from_date ( CORBA::ULong &  howMany,
CORBA::ULongLong  from_timeStamp 
)
void Logging_impl::saveLoggingContext ( const std::string &  url,
int  loglevel,
ossie::logging::ResourceCtxPtr  ctx 
)
void Logging_impl::setLogConfig ( const char *  config_contents)
virtual void Logging_impl::setLogConfigCallback ( LogConfigListener func)
protectedvirtual
virtual void Logging_impl::setLogConfigCallback ( LogConfigCallbackFn  func)
protectedvirtual
template<typename T >
void Logging_impl::setLogConfigListener ( T &  target,
void(T::*)(const char *config_data)  func 
)
inlineprotected
template<typename T >
void Logging_impl::setLogConfigListener ( T *  target,
void(T::*)(const char *config_data)  func 
)
inlineprotected
void Logging_impl::setLogConfigURL ( const char *  config_url)
void Logging_impl::setLoggingContext ( ossie::logging::ResourceCtxPtr  ctx)
void Logging_impl::setLoggingContext ( const std::string &  url,
int  loglevel,
ossie::logging::ResourceCtxPtr  ctx 
)
void Logging_impl::setLoggingMacros ( ossie::logging::MacroTable &  tbl,
bool  applyCtx 
)
void Logging_impl::setLogLevel ( const char *  logger_id,
const CF::LogLevel  newLevel 
)
throw (CF::UnknownIdentifier
)
virtual void Logging_impl::setLogLevelCallback ( LogLevelListener func)
protectedvirtual
virtual void Logging_impl::setLogLevelCallback ( LogLevelCallbackFn  func)
protectedvirtual
template<typename T >
void Logging_impl::setLogLevelListener ( T &  target,
void(T::*)(const char *logid, const CF::LogLevel &level)  func 
)
inlineprotected
template<typename T >
void Logging_impl::setLogLevelListener ( T *  target,
void(T::*)(const char *logid, const CF::LogLevel &level)  func 
)
inlineprotected
void Logging_impl::setResourceContext ( ossie::logging::ResourceCtxPtr  ctx)

Member Data Documentation

LOGGER Logging_impl::_logger
protected
ossie::logging::MacroTable Logging_impl::_loggingMacros
protected
CF::LogLevel Logging_impl::_logLevel
protected
std::string Logging_impl::_logName
protected

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