SE_log_copy

Copies one log file to another

Usage syntax

LONG SE_log_copy (SE_CONNECTION connection, const CHAR *oldlogfile, const CHAR *newlogfile);

Parameters
connection The connection handle
oldlogfile The name of the existing log file; may be a user name file name
newlogfile The name of the log file to create; must be a simple log file name
Description

SE_log_copy copies an existing log file to a new log file. The copy occurs on the server. Any entries in the new log file are replaced by the contents of the old log file.

Returns

SE_SUCCESS
SE_LOG_IO_ERROR

SE_LOG_NOACCESS

SE_LOG_NOEXIST

SE_LOG_NOTOPEN

SE_NET_FAILURE

SE_OUT_OF_SVMEM

SE_SDE_NOT_STARTED

Notes

∙ The output log file is the same type, persistent or temporary, as the original. You may change its type with the SE_log_set_type. The log file must not be opened.