Go to the source code of this file.
|
static const char | rlevent_name [][4] = { "INF", "WAR", "ERR", "CRI", "FAT", "TST" } |
|
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.
- Enumerator:
rlInfo |
|
rlWarning |
|
rlError |
|
rlCritical |
|
rlFatal |
|
rlTest |
|
rlEVENT_SIZE |
|
Definition at line 29 of file rlevent.h.
void rlEventInit |
( |
int |
ac, |
|
|
char ** |
av, |
|
|
const char * |
module |
|
) |
| |
initialize rlEvent
parameters:
-eventhost=adr
-eventport=num
Definition at line 36 of file rlevent.cpp.
{
const char *cptr;
for(int i=0; i<ac; i++)
{
cptr = av[i];
}
}
void rlEventPrintf |
( |
int |
event_type, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
output the message
Definition at line 82 of file rlevent.cpp.
{
va_list ap;
va_start(ap,format);
va_end(ap);
if(event_type < 0 ) event_type =
rlError;
#ifdef RLUNIX
);
#endif
#ifdef __VMS
);
#endif
#ifdef RLWIN32
_snprintf(rlfinal,sizeof(rlfinal)-1,"%s %s %s %s%s\n",
);
#endif
{
}
else
{
{
}
}
}
void rlSetEventLocation |
( |
const char * |
file, |
|
|
int |
line |
|
) |
| |
set the location where rlEvent is called
Definition at line 50 of file rlevent.cpp.
{
#ifdef RLWIN32
const char *cptr;
if(strchr(file,'\\') == NULL) cptr = NULL
else cptr = strrchr(file,'\\');
if(cptr != NULL) cptr++;
else cptr = file;
#endif
#ifdef __VMS
const char *cptr;
if(strchr(file,']') == NULL) cptr = NULL
else cptr = strrchr(file,']');
if(cptr != NULL) cptr++;
else cptr = file;
#endif
#ifdef RLUNIX
#endif
#ifdef __VMS
#endif
#ifdef RLWIN32
#endif
}
const char rlevent_name[][4] = { "INF", "WAR", "ERR", "CRI", "FAT", "TST" } |
|
static |