commore  1.0.6-SNAPSHOT
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::FileLogHook Class Reference

#include <LogHook.h>

+ Inheritance diagram for commore::FileLogHook:

Public Member Functions

 FileLogHook (const AChar *dir, int max_line=132)
 
 FileLogHook (const FileLogHook &)
 
FileLogHookoperator= (const FileLogHook &)
 
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)
 
AutoRefoperator= (const AutoRef &a)
 
AutoRefoperator= (const AutoRefBase &a)
 
AutoRefoperator= (RefObject *p)
 
 operator bool () const
 
bool create (const AChar *s)
 
bool create ()
 
bool bind (const AChar *s)
 
bool bind ()
 
LogHookget () const
 
LogHookoperator* () const
 
LogHookoperator-> () 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)
 
AutoRefBaseoperator= (const AutoRefBase &a)
 
RefObjectget_ () const
 
void set_ (RefObject *p)
 
void clear ()
 

Detailed Description

Standard file Log hook

Constructor & Destructor Documentation

commore::FileLogHook::FileLogHook ( const AChar *  dir,
int  max_line = 132 
)
Parameters
dir: path of an existing directory, where log files will be created

Member Function Documentation

bool commore::FileLogHook::activate ( bool  activate = true)

Activate log message collect

Parameters
activateif false deactivate
Returns
previous status

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