|
Couchbase Lite C
Couchbase Lite C API
|
Managing messages that Couchbase Lite logs at runtime. More...
Functions | |
| void | CBL_Log (CBLLogDomain domain, CBLLogLevel level, const char *format,...) __printflike(3 |
| Formats and writes a message to the log, in the given domain at the given level. | |
| void void | CBL_LogMessage (CBLLogDomain domain, CBLLogLevel level, FLSlice message) |
| Writes a pre-formatted message to the log, exactly as given. | |
Managing messages that Couchbase Lite logs at runtime.
| void CBL_Log | ( | CBLLogDomain | domain, |
| CBLLogLevel | level, | ||
| const char * | format, | ||
| ... ) |
Formats and writes a message to the log, in the given domain at the given level.
If you are logging a fixed string, call CBL_LogMessage instead, otherwise any % characters in the format string will be misinterpreted as placeholders and the dreaded Undefined Behavior will result, possibly including crashes or overwriting the stack.
| domain | The log domain to associate this message with. |
| level | The severity of the message. If this is lower than the current minimum level for the domain (as set by CBLLog_SetConsoleLevel), nothing is logged. |
| format | A printf-style format string. % characters in this string introduce parameters, and corresponding arguments must follow. |
| void void CBL_LogMessage | ( | CBLLogDomain | domain, |
| CBLLogLevel | level, | ||
| FLSlice | message ) |
Writes a pre-formatted message to the log, exactly as given.
| domain | The log domain to associate this message with. |
| level | The severity of the message. If this is lower than the current minimum level for the domain (as set by CBLLog_SetConsoleLevel), nothing is logged. |
| message | The exact message to write to the log. |