rllib
1
|
#include <rleventlogserver.h>
Public Member Functions | |
rlEventLogServer (const char *filename=NULL, int max_events=10000) | |
virtual | ~rlEventLogServer () |
const char * | getEvent (char *buf, int *num) |
void | putEvent (const char *event) |
Private Attributes | |
char | memory [rlMAX_MESSAGES *rlMAX_EVENT] |
rlMutex | mutex |
int | front |
int | cnt |
char * | filename |
void * | fp |
int | max_events |
int | num_events |
A class for implementing an event log server. You may use it with rlevent.h
Definition at line 29 of file rleventlogserver.h.
rlEventLogServer::rlEventLogServer | ( | const char * | filename = NULL , |
int | max_events = 10000 |
||
) |
the event log files will be called: filename<date-and-time>.rlEventLog max_events = max number of events in one file files may be purged by cron
Definition at line 23 of file rleventlogserver.cpp.
|
virtual |
Definition at line 41 of file rleventlogserver.cpp.
const char * rlEventLogServer::getEvent | ( | char * | buf, |
int * | num | ||
) |
num is the event number num = -1 will retrieve all events
Definition at line 47 of file rleventlogserver.cpp.
void rlEventLogServer::putEvent | ( | const char * | event | ) |
Definition at line 82 of file rleventlogserver.cpp.
|
private |
Definition at line 52 of file rleventlogserver.h.
|
private |
Definition at line 53 of file rleventlogserver.h.
|
private |
Definition at line 54 of file rleventlogserver.h.
|
private |
Definition at line 51 of file rleventlogserver.h.
|
private |
Definition at line 55 of file rleventlogserver.h.
|
private |
Definition at line 49 of file rleventlogserver.h.
|
private |
Definition at line 50 of file rleventlogserver.h.
|
private |
Definition at line 55 of file rleventlogserver.h.