Go to the source code of this file.
|
static const char | rlevent_name [][4] = { "INF", "WAR", "ERR", "CRI", "FAT", "TST" } |
|
◆ rlEvent
◆ rlMAX_EVENT
These functions allow you to send event log messages over TCP/IP to the event log server
implemented by the pvserver pcontrol (available as separate download)
See also the class rlEventLogServer.
Definition at line 26 of file rlevent.h.
◆ EventTypes
Enumerator |
---|
rlInfo | |
rlWarning | |
rlError | |
rlCritical | |
rlFatal | |
rlTest | |
rlEVENT_SIZE | |
Definition at line 29 of file rlevent.h.
◆ rlEventInit()
void rlEventInit |
( |
int |
ac, |
|
|
char ** |
av, |
|
|
const char * |
module |
|
) |
| |
initialize rlEvent
parameters:
-eventhost=adr
-eventport=num
Definition at line 36 of file rlevent.cpp.
41 for(
int i=0; i<ac; i++)
char * rlstrncpy(char *dest, const char *source, int n)
void setAdr(const char *adr)
static rlSocket toEventLogServer("localhost",-1, 1)
◆ rlEventPrintf()
void rlEventPrintf |
( |
int |
event_type, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
output the message
Definition at line 82 of file rlevent.cpp.
90 if(event_type < 0 ) event_type =
rlError;
103 sprintf(
rlfinal,
"%s %s %s %s%s\n",
const char * getTimeString()
static char rlmessage[rlMAX_EVENT]
static const char rlevent_name[][4]
static char rlfinal[rlMAX_EVENT *4]
int rlvsnprintf(char *text, int len, const char *format, va_list ap)
static char rllocation[rlMAX_EVENT]
static rlSocket toEventLogServer("localhost",-1, 1)
int printf(const char *format,...)
◆ rlSetEventLocation()
void rlSetEventLocation |
( |
const char * |
file, |
|
|
int |
line |
|
) |
| |
set the location where rlEvent is called
Definition at line 50 of file rlevent.cpp.
55 if(strchr(file,
'\\') == NULL) cptr = NULL;
56 else cptr = strrchr(file,
'\\');
57 if(cptr != NULL) cptr++;
63 if(strchr(file,
']') == NULL) cptr = NULL;
64 else cptr = strrchr(file,
']');
65 if(cptr != NULL) cptr++;
static char rllocation[rlMAX_EVENT]
◆ rlevent_name
const char rlevent_name[][4] = { "INF", "WAR", "ERR", "CRI", "FAT", "TST" } |
|
static |