#define CBL_OPTIONS(_type, _name)
Definition: CBL_Compat.h:63
#define CBLAPI
Definition: CBL_Compat.h:104
#define _cbl_nullable
Definition: CBL_Compat.h:92
#define CBL_CAPI_BEGIN
Definition: CBL_Compat.h:105
#define CBL_CAPI_END
Definition: CBL_Compat.h:106
#define CBL_ENUM(_type, _name)
Definition: CBL_Compat.h:62
void CBLLogSinks_SetCustom(CBLCustomLogSink sink)
Set the custom log sink.
CBLLogDomainMask
A bitmask representing a set of logging domains.
Definition: CBLLogSinks.h:55
CBLCustomLogSink CBLLogSinks_CustomSink(void)
Get the current custom log sink.
void CBLLogSinks_SetConsole(CBLConsoleLogSink sink)
Set the console log sink.
void CBLLogSinks_SetFile(CBLFileLogSink sink)
Set the file log sink.
CBLFileLogSink CBLLogSinks_File(void)
Get the current custom log sink.
CBLLogDomain
Subsystems for logging messages.
Definition: CBLLogSinks.h:43
CBLLogLevel
The severity level of log messages.
Definition: CBLLogSinks.h:33
void(* CBLLogSinkCallback)(CBLLogDomain domain, CBLLogLevel level, FLString message)
A callback function for a custom log sink.
Definition: CBLLogSinks.h:67
CBLConsoleLogSink CBLLogSinks_Console(void)
Get the current console log sink.
@ kCBLLogDomainMaskNetwork
Definition: CBLLogSinks.h:59
@ kCBLLogDomainMaskQuery
Definition: CBLLogSinks.h:57
@ kCBLLogDomainMaskReplicator
Definition: CBLLogSinks.h:58
@ kCBLLogDomainMaskDatabase
Definition: CBLLogSinks.h:56
@ kCBLLogDomainMaskAll
Definition: CBLLogSinks.h:60
@ kCBLLogDomainDatabase
Logging domain for the database subsystem.
Definition: CBLLogSinks.h:44
@ kCBLLogDomainReplicator
Logging domain for the replicator subsystem.
Definition: CBLLogSinks.h:46
@ kCBLLogDomainNetwork
Logging domain for the network subsystem.
Definition: CBLLogSinks.h:47
@ kCBLLogDomainQuery
Logging domain for the query subsystem.
Definition: CBLLogSinks.h:45
@ kCBLLogWarning
Warning messages indicating potential issues or unusual conditions.
Definition: CBLLogSinks.h:37
@ kCBLLogVerbose
Verbose messages providing detailed operational information.
Definition: CBLLogSinks.h:35
@ kCBLLogDebug
Debug-level messages with highly detailed information, Available only in debug builds of Couchbase Li...
Definition: CBLLogSinks.h:34
@ kCBLLogNone
Disables logging entirely. No messages will be logged.
Definition: CBLLogSinks.h:39
@ kCBLLogInfo
Info messages about normal application behavior.
Definition: CBLLogSinks.h:36
@ kCBLLogError
Error messages indicating a failure or problem that occurred.
Definition: CBLLogSinks.h:38
Console log sink configuration for logging to the cosole.
Definition: CBLLogSinks.h:70
CBLLogLevel level
The minimum level of message to write (Required).
Definition: CBLLogSinks.h:71
CBLLogDomainMask domains
Bitmask for enabled log domains. Use zero for all domains.
Definition: CBLLogSinks.h:72
Custom log sink configuration for logging to a user-defined callback.
Definition: CBLLogSinks.h:76
CBLLogLevel level
The minimum level of message to write (Required).
Definition: CBLLogSinks.h:77
CBLLogSinkCallback _cbl_nullable callback
Custom log callback (Required).
Definition: CBLLogSinks.h:78
CBLLogDomainMask domains
Bitmask for enabled log domains. Use zero for all domains.
Definition: CBLLogSinks.h:79
File log sink configuration for logging to files.
Definition: CBLLogSinks.h:83
size_t maxSize
The size in bytes at which a file will be rotated out (best effort).
Definition: CBLLogSinks.h:93
CBLLogLevel level
The minimum level of message to write (Required).
Definition: CBLLogSinks.h:84
FLString directory
The directory where log files will be created (Required).
Definition: CBLLogSinks.h:85
bool usePlaintext
Whether or not to log in plaintext as opposed to binary.
Definition: CBLLogSinks.h:97
uint32_t maxKeptFiles
The maximum number of files to save per log level.
Definition: CBLLogSinks.h:89
A simple reference to a block of memory.
Definition: FLSlice.h:45