Start and stop FTL
Log levels.
This file defines calls that start and stop FTL, and configure logging.
TIB_API void tib_Close |
( |
tibEx |
e | ) |
|
Cleanup FTL.
This call closes (that is, terminates) FTL within your program, and reclaims related resources that tib_Open allocated and initialized.
Calls to tib_Close decrement the FTL reference counter, but actually close (that is, terminate) FTL only when the counter reaches zero.
In each program, the number of calls to tib_Open() and tib_Close() must match.
Programs must not call tib_Close within a callback.
Programs must close realm objects before closing FTL.
- Parameters
-
e | The exception object captures information about failures. |
- Returns
- void
Initialize FTL.
This call opens (that is, initializes) FTL within your program, including threads and global data structures.
The first time a program calls it, this call initializes FTL. If the program (or a third-party package) calls it again, it increments a reference counter, but does not reinitialize FTL. Calls to tib_Close decrement the FTL reference counter, but actually close (that is, terminate) FTL only when the counter reaches zero.
In each program, the number of calls to tib_Open() and tib_Close() must match.
- Parameters
-
e | The exception object captures information about failures. |
compatible_version | The program must supply the constant TIB_COMPATIBILITY_VERSION. |
- Returns
- void
TIB_API void tib_SetLogLevel |
( |
tibEx |
e, |
|
|
const char * |
level |
|
) |
| |
Set the global log trace level for low-level FTL internal calls.
Set one log level for all logging elements, e.g., tib_SetLogLevel(tibEx e, TIB_LOG_LEVEL_WARN)
Or, set log levels per element tag, e.g., tib_SetLogLevel(tibEx e, "transports:warn;api:debug")
Valid levels:
Valid element tags:
- all - applies to all elements.
- application - logging for the application, e.g., API calls, message formats, and content matchers.
- transports - logging for transports, including peer connections, subscriber interest, message sends, protocols.
- msg - logging related to messages. For debug, print a representation of each inbound/outbound message.
- api - logging related to API calls.
For more information, see the topic Log Levels in the book TIBCO FTL Development.
- Parameters
-
e | The exception object captures information about failures. |
level | The call sets the level to this value. |
- Returns
- void