Log Level Tuning via API
You can tune the log level for all logging elements, or separately per individual elements.
Tuning for All Elements
In a log-level call, supply one of the string-valued constants in Log Level Reference. For example (in C):
tib_SetLogLevel(tibEx e, TIB_LOG_LEVEL_WARN)
Alternatively, you can supply an all log element tag. See the next section.
Tuning for Selected Elements
Supply a string of this form:
"element:level; ... ;element:level"
Pair each element and its log level with a colon, and delimit the pairs with semicolons. For available elements, see Log Element Tags Reference. For example (in C):
tib_SetLogLevel(tibEx e, "transports:warn;msg:debug")
When elements conflict, pairs that appear later in the list override earlier pairs. For example, all:off;msg:warn turns off logging for all elements, except for the messages (msg) element, which logs warnings and severe events, thus overriding the preceding all element.
- Log Level Reference
These API constants and their string values denote the available log levels. - Log Element Tags Reference
These strings denote the available log element tags.