SE_stream_set_logfile

Sets the destination of stream operations to a log file

Usage syntax

LONG SE_stream_set_logfile
(SE_STREAM stream,
SE_LOG log,
BOOL logfile_only);

Parameters
stream The stream handle
log The handle to a log file opened by SE_log_open
logfile_only TRUE if results are to be written to the log file only
Description

SE_stream_set_logfile sets a log file as the destination for a stream operation. Examples include sending the results of a query to a log file or to the client and a log file at the same time. If the argument logfile_only is TRUE, the entire query is executed at SE_stream_execute time. The application does not need to call SE_stream_fetch. The argument logfile_only can be set to TRUE for queries only, not for updates or inserts.

During inserts and updates, only shapes that are added or modified are logged. Deleted shapes are not logged.

A log file can contain SE_ROW_IDs from one layer only.

You can set a log file on an uninitialized stream but not after executing the stream.

It is not necessary to select the spatial column when querying a layer if a log file is set.

Returns

SE_SUCCESS
SE_CONNECTION_IN_USE

SE_CONNECTION_LOCKED

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_INVALID_STREAM_TYPE

SE_LAYER_MISMATCH

SE_LOG_NOTOPEN

SE_NET_FAILURE

SE_SDE_NOT_STARTED

SE_STREAM_IN_PROGRESS