prg_log_tfile_assoc()
Abstract
Associates a log with a typed file (tfile).
Syntax
prg_log_tfile_assoc (log_store_hndl, assoc_type, assoc_name)
| Argument | Type | Description |
|---|---|---|
log_store_hndl |
PrgT_Log_Store_Handle |
Log store of interest. |
assoc_type |
int |
Tfile type of the file to associate with the log. |
assoc_name |
const char * |
FIle name (with no path or extension) of the tfile with which to associate the log. |
Return Type
PrgT_Compcode
PrgC_Compcode_Failure if the log directory is already set or the log and tfile are in the same directory; PrgC_Compcode_Success otherwise.
Header
prg_log.h
Details
This function moves the <log name>.olf.dir directory to the directory containing assoc_name.