|
commore
1.0.6-SNAPSHOT
|
#include <LogHook.h>
Inheritance diagram for commore::SysLogHook:Public Member Functions | |
| SysLogHook (const AChar *syslog_id, int facility, bool activate=true) | |
| SysLogHook (const SysLogHook &) | |
| SysLogHook & | operator= (const SysLogHook &) |
| ~SysLogHook () | |
| bool | activate (bool activate=true) |
Public Member Functions inherited from commore::AutoRef< LogHook > | |
| AutoRef () | |
| AutoRef (const AChar *s) | |
| AutoRef (bool) | |
| AutoRef (LogHook *p) | |
| AutoRef (RefObject *p) | |
| AutoRef (const AutoRef &a) | |
| AutoRef (const AutoRefBase &a) | |
| AutoRef & | operator= (const AutoRef &a) |
| AutoRef & | operator= (const AutoRefBase &a) |
| AutoRef & | operator= (RefObject *p) |
| operator bool () const | |
| bool | create (const AChar *s) |
| bool | create () |
| bool | bind (const AChar *s) |
| bool | bind () |
| LogHook * | get () const |
| LogHook & | operator* () const |
| LogHook * | operator-> () const |
| operator LogHook * () const | |
| bool | operator== (const AutoRef &a) const |
| bool | operator!= (const AutoRef &a) const |
| bool | operator< (const AutoRef &a) const |
| bool | is_bound () const |
| void | unbind () |
Public Member Functions inherited from commore::AutoRefBase | |
| AutoRefBase () | |
| AutoRefBase (RefObject *p) | |
| AutoRefBase (const AutoRefBase &a) | |
| AutoRefBase & | operator= (const AutoRefBase &a) |
| ~AutoRefBase () | |
| RefObject * | get_ () const |
| void | set_ (RefObject *p) |
| void | clear () |
Syslog hook currently implemented only for linux systems
| SysLogHook::SysLogHook | ( | const AChar * | syslog_id, |
| int | facility, | ||
| bool | activate = true |
||
| ) |
| syslog_id | identifier used as a prefix for all messages. see openlog() libc documentation |
| facility | facility used for all messages. see openlog() libc documentation |
| optional activate true for immediately activate this hook. default is true. |
| SysLogHook::SysLogHook | ( | const SysLogHook & | p | ) |
| SysLogHook::~SysLogHook | ( | ) |
| bool SysLogHook::activate | ( | bool | activate = true | ) |
Activate log message collect
| activate | if false deactivate |
| SysLogHook & SysLogHook::operator= | ( | const SysLogHook & | p | ) |