int tsmLog ( TsmConnection connect, const char *event_name, const char *data, ... )

Send a log event to the log file

Documentation

Send a log event to the log file.

Once you have started logging of data with the tsmBeginLogging call, you can use this function to send a log event to the log file. For example,

tsmLog( connect, "EVENT_NAME", "TILE=%d.%d.%d", x, y, res );

The tsmApi defines a number of standard events that it uses to instrument your session. These events are automatically logged for you once you have started logging:

In addition to these automatically-logged events, the tsmApi defines a number of standard events for an application to use to log the life of a tile beyond the tsmApi:

Returns:
TRUE if data was logged successfully, FALSE if failed.
Parameters:
connect - a dataset connection, as returned by tsmConnect
event_name - a string describing the event being logged
data - a printf style string specifying the data to be logged for the event
Author:
Martin Reddy
Version:
21 May 1998
See Also:
tsmBeginLogging, tsmEndLogging


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page