Purpose of Logging Client
The logging example shows how a client can log a message by sending a log event to the Event Server. No event loop is required since asynchronous event notification is not needed to accomplish this.
Code
main(
int argc,
char **argv
)
{
/* Initialize the API.
Application name = "log message"
No application qualifier.
*/
SPD_InitClient("log message", NULL);
/* client processing... */
/* Log a message:
The message "An important..." is written to "logfile"
as a normal ("NO") message.
Application name and qualifier are the defaults.
No time stamp.
*/
SPD_LogMessage("logfile", "NO",
"An important event has occurred", NULL, NULL, 0);
/* more client processing... */
/* no event loop required if events are only sent,
but not received.
*/
}Data Flow Diagram
This illustration shows the flow of information for the logging client.