Main Page | Data Structures | File List | Data Fields | Globals

serverlog.c File Reference

Routines for creating a server runtime log. More...

#include "isisserver.h"

Functions

void initLog ()
 Initialize the ISIS server runtime log for this session.
int logMessage (char *message)
 Append an entry to the server's runtime log with date/time tagging.


Detailed Description

Routines for creating a server runtime log.


Function Documentation

void initLog void   ) 
 

Initialize the ISIS server runtime log for this session.

Opens the server's runtime log. Log entries are created by the logMessage() function.

int logMessage char *  message  ) 
 

Append an entry to the server's runtime log with date/time tagging.

Parameters:
message String with the log entry to append to the log.
Returns:
0 if successful, <0 if an error occurred.
Appends the message string given into the server's runtime log, along with a date and time tag. If errors occur, messages are printed on the server's command console.

If the date tag has changed, start a new logfile for a new observing day.

Returns 0 if the logging has been disabled, making it look the same as if the log had been updated.


Generated on Tue Apr 16 17:04:08 2013 for ISIS Server by  doxygen 1.3.9.1