Couchbase Lite C
Couchbase Lite C API
Data Structures | Functions
CBLLog.h File Reference
#include "CBLBase.h"
#include "CBLLogSinks.h"

Go to the source code of this file.

Data Structures

struct  CBLLogFileConfiguration
 The properties for configuring logging to files. 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 CBLLogSinkCallback CBLLogCallback
 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...