Couchbase Lite C
Couchbase Lite C API
|
#include "CBLBase.h"
Go to the source code of this file.
Data Structures | |
struct | CBLLogFileConfiguration |
The properties for configuring logging to files. More... | |
Enumerations | |
enum | CBLLogDomain : uint8_t { kCBLLogDomainDatabase , kCBLLogDomainQuery , kCBLLogDomainReplicator , kCBLLogDomainNetwork } |
Subsystems that log information. More... | |
enum | CBLLogLevel : uint8_t { kCBLLogDebug , kCBLLogVerbose , kCBLLogInfo , kCBLLogWarning , kCBLLogError , kCBLLogNone } |
Levels of log messages. 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. More... | |
void void | CBL_LogMessage (CBLLogDomain domain, CBLLogLevel level, FLSlice message) |
Writes a pre-formatted message to the log, exactly as given. More... | |
Log File Configuration | |
const CBLLogFileConfiguration *_cbl_nullable | CBLLog_FileConfig (void) |
Gets the current file logging configuration, or NULL if none is configured. More... | |
bool | CBLLog_SetFileConfig (CBLLogFileConfiguration, CBLError *_cbl_nullable outError) |
Sets the file logging configuration, and begins logging to files. More... | |
Console Logging and Custom Logging | |
typedef void(* | CBLLogCallback) (CBLLogDomain domain, CBLLogLevel level, FLString message) |
A logging callback that the application can register. More... | |
CBLLogLevel | CBLLog_ConsoleLevel (void) |
Gets the current log level for debug console logging. More... | |
void | CBLLog_SetConsoleLevel (CBLLogLevel) |
Sets the detail level of logging. More... | |
CBLLogLevel | CBLLog_CallbackLevel (void) |
Gets the current log level for debug console logging. More... | |
void | CBLLog_SetCallbackLevel (CBLLogLevel) |
Sets the detail level of logging. More... | |
CBLLogCallback | CBLLog_Callback (void) |
Gets the current log callback. More... | |
void | CBLLog_SetCallback (CBLLogCallback _cbl_nullable callback) |
Sets the callback for receiving log messages. More... | |