commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commore::LogHook Class Reference

#include <LogHook.h>

+ Inheritance diagram for commore::LogHook:

Public Member Functions

bool unhook ()
 
bool hook ()
 
 LogHook ()
 
 ~LogHook ()
 
bool is_activated ()
 
virtual void notify_activated (bool activate)
 
virtual void message (const LogMessage &message)
 
- Public Member Functions inherited from commore::RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void attach ()
 
virtual void release ()
 
virtual void nested_attach ()
 
virtual void nested_release ()
 
virtual void interface_release ()
 
virtual void Run ()
 
virtual CriticalSectionget_cs ()
 

Friends

class LogHookManager
 

Additional Inherited Members

- Static Public Member Functions inherited from commore::RefObject
static AutoRefBase auto_create ()
 
static AutoRefBase auto_create (const AChar *s)
 
static AutoRefBase create ()
 
static AutoRefBase create (const AChar *s)
 
static AutoRefBase bind ()
 
static AutoRefBase bind (const AChar *s)
 
static const ACharfactory_name ()
 

Detailed Description

Base class for loghook implementation The loghook object captures log messages emitted by commore::Log objects.

Examples:
/examples/coding/Logs.cpp.

Constructor & Destructor Documentation

LogHook::LogHook ( )
LogHook::~LogHook ( )

Member Function Documentation

bool LogHook::hook ( )

Start collect of log message

bool LogHook::is_activated ( )
Returns
true if collect is active
void LogHook::message ( const LogMessage message)
virtual

Log message collector. Call for each colected message.

Reimplemented in SysLogHookImpl, CatcherLogHookImpl, FileLogHookImpl, and ConsoleLogHookImpl.

void LogHook::notify_activated ( bool  activate)
virtual

Notify implementation that activation state have changed

Reimplemented in SysLogHookImpl, and ConsoleLogHookImpl.

bool LogHook::unhook ( )

Terminate log message collect

Friends And Related Function Documentation

friend class LogHookManager
friend

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