AP_Logger Class Reference

#include <AP_Logger.h>

Inherits AP::AP_Thread.

Collaboration diagram for AP_Logger:

Collaboration graph

Public Member Functions

AP_Bool Destroy (void)
AP_Bool Init (const AP_String &name, AP_Uint32 level, const AP_String &filter, bool stderr)
AP_String name (void)
void run (void)
void SetLogger (const AP_String &name, AP_Uint32 level, const AP_String &filter, bool stderr)
void Write (AP_Uint32 dwCode, const AP_String &file, const AP_String &func, AP_Sint32 line, const AP_String &fmt,...)

Static Public Member Functions

static AP_LoggerLog (void)

Private Member Functions

 AP_Logger (void)
AP_String getFilename (void)
virtual ~AP_Logger (void)

Private Attributes

AP_ThreadCriticalSection _m_critical
AP_String _m_filter
AP_Uint32 _m_level
AP_String _m_name
AP_Sint32 _m_pid
AP_Bool _m_stderr

Static Private Attributes

static AP_Logger Logger_singletone

Constructor & Destructor Documentation

AP_Logger ( void   )  [private]

~AP_Logger ( void   )  [private, virtual]


Member Function Documentation

AP_Bool Destroy ( void   ) 

AP_String getFilename ( void   )  [private]

AP_Bool Init ( const AP_String name,
AP_Uint32  level,
const AP_String filter,
bool  stderr 
)

static AP_Logger* Log ( void   )  [inline, static]

AP_String name ( void   )  [inline]

void run ( void   )  [virtual]

Main thread function. It must be overloaded in your derived class. It has no parameter.

Example:
void run(void)
{
while(is_running())
{
... do something ...
}
}

Reimplemented from AP_Thread.

void SetLogger ( const AP_String name,
AP_Uint32  level,
const AP_String filter,
bool  stderr 
)

void Write ( AP_Uint32  dwCode,
const AP_String file,
const AP_String func,
AP_Sint32  line,
const AP_String fmt,
  ... 
) [inline]


Field Documentation

AP_String _m_filter [private]

AP_Uint32 _m_level [private]

AP_String _m_name [private]

AP_Sint32 _m_pid [private]

AP_Bool _m_stderr [private]

AP_Logger Logger_singletone [static, private]


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

Generated on Fri Mar 5 16:50:45 2010 for CarLinO by  doxygen 1.5.8