commore
1.0.6-SNAPSHOT
|
#include <LogHook.h>
Public Member Functions | |
bool | unhook () |
bool | hook () |
LogHook () | |
~LogHook () | |
bool | is_activated () |
virtual void | notify_activated (bool activate) |
virtual void | message (const LogMessage &message) |
![]() | |
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 CriticalSection * | get_cs () |
Friends | |
class | LogHookManager |
Additional Inherited Members | |
![]() | |
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 AChar * | factory_name () |
Base class for loghook implementation The loghook object captures log messages emitted by commore::Log objects.
LogHook::LogHook | ( | ) |
LogHook::~LogHook | ( | ) |
bool LogHook::hook | ( | ) |
Start collect of log message
bool LogHook::is_activated | ( | ) |
|
virtual |
Log message collector. Call for each colected message.
Reimplemented in SysLogHookImpl, CatcherLogHookImpl, FileLogHookImpl, and ConsoleLogHookImpl.
|
virtual |
Notify implementation that activation state have changed
Reimplemented in SysLogHookImpl, and ConsoleLogHookImpl.
bool LogHook::unhook | ( | ) |
Terminate log message collect
|
friend |