#include <AP_Logger.h>
Inherits AP::AP_Thread.
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_Logger * | Log (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 |
AP_Logger | ( | void | ) | [private] |
~AP_Logger | ( | void | ) | [private, virtual] |
AP_Bool Destroy | ( | void | ) |
AP_String getFilename | ( | void | ) | [private] |
static AP_Logger* Log | ( | void | ) | [inline, static] |
AP_String name | ( | void | ) | [inline] |
void run | ( | void | ) | [virtual] |
void Write | ( | AP_Uint32 | dwCode, | |
const AP_String & | file, | |||
const AP_String & | func, | |||
AP_Sint32 | line, | |||
const AP_String & | fmt, | |||
... | ||||
) | [inline] |
AP_ThreadCriticalSection _m_critical [private] |
AP_Logger Logger_singletone [static, private] |