tibas_EnableFileLogging()

Enables logging of specified log level messages to a specified log file.

Declaration

tibas_status tibas_EnableFileLogging(
    const char* logDir,
    const char* fileName,
    tibas_logLevel logLevel)

Parameters

Parameter Description
logDir Specify the directory path where you want the log file written.
fileName Specify the name of the log file.
logLevel Specify the log level of the messages to write to the specified log file.

The possible values are TIBAS_LOG_FATAL, TIBAS_LOG_ERROR, TIBAS_LOG_WARN, TIBAS_LOG_FINE, TIBAS_LOG_FINER, TIBAS_LOG_FINEST, or TIBAS_LOG_INFO.

Remarks

Use the tibas_EnableFileLogging() function to enable logging of TIBCO ActiveSpaces messages to a log file.

You can specify the log file directory, the name of the log file, and the level of logging messages to add to the file.

You can call this function multiple times to specify writing of different log level messages to separate log files. For example, you can specify that TIBAS_LOG_ERROR messages are written to one log file and TIBAS_LOG_INFO messages are written to another log file.

After you have enable file logging, you can disable it if necessary by calling the tibas_DisableFileLogging() function.