Controls error log processing#include <tmusubs.h>int sm_tm_errorlog(int call_type, int call_type_code, char *log_file);
- Determines which aspect of error log processing is affected. One of the following constants:
TM_ERR_NEW_COMMAND, as defined below.
- A value that is used depending on the argument supplied for
- The name of the file in which the error log is maintained; ignored unless
sm_tm_errorlogcontrols error log processing according to the value of
TM_ERR_KEEPspecifies the existence of the error log. A
call_type_codevalue of 0 clears the error log when a new command begins processing. A value of 1 indicates not to clear out the log. The last parameter is ignored.
TM_ERR_SUPPRESSspecifies which errors to suppress depending on a severity level, where
call_type_codedetermines which errors to suppress. Any errors passed to sm_tm_error with a severity greater than 0 and less than or equal to
call_type_codeare not logged. If
call_type_codeis 0, there is no suppression.
TM_ERR_FILEspecifies the error log file that is named by
log_file. The file is appended to if it exists, but a call to this function with
TM_ERR_KEEPmight override this. If there is no call to
sm_tm_errorlog, there is no sm_tm_error error logging.
call_type_codeis 0, the file is not flushed or closed unnecessarily after it is written to. If
call_type_codeis 1, the file is closed after each entry is written.
log_fileis a null pointer or empty string, there is no further error logging until a subsequent call to
TM_ERR_NEW_COMMANDspecifies that processing of a new command is starting.