#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 __printflike(fmtarg, firstvararg)
Definition: CBL_Compat.h:131
const CBLLogFileConfiguration *_cbl_nullable CBLLog_FileConfig(void)
Gets the current file logging configuration, or NULL if none is configured.
void CBLLog_SetCallbackLevel(CBLLogLevel)
Sets the detail level of logging.
CBLLogLevel CBLLog_CallbackLevel(void)
Gets the current log level for debug console logging.
void void CBL_LogMessage(CBLLogDomain domain, CBLLogLevel level, FLSlice message)
Writes a pre-formatted message to the log, exactly as given.
CBLLogCallback CBLLog_Callback(void)
Gets the current log callback.
bool CBLLog_SetFileConfig(CBLLogFileConfiguration, CBLError *_cbl_nullable outError)
Sets the file logging configuration, and begins logging to files.
CBLLogLevel CBLLog_ConsoleLevel(void)
Gets the current log level for debug console logging.
void CBLLog_SetCallback(CBLLogCallback _cbl_nullable callback)
Sets the callback for receiving log messages.
CBLLogSinkCallback CBLLogCallback
A logging callback that the application can register.
Definition: CBLLog.h:60
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 CBLLog_SetConsoleLevel(CBLLogLevel)
Sets the detail level of logging.
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:69
A struct holding information about an error.
Definition: CBLBase.h:104
The properties for configuring logging to files.
Definition: CBLLog.h:99
uint32_t maxRotateCount
Max number of older log files to keep (in addition to current one.) The default is kCBLDefaultLogFile...
Definition: CBLLog.h:106
size_t maxSize
The size in bytes at which a file will be rotated out (best effort).
Definition: CBLLog.h:110
bool usePlaintext
Whether or not to log in plaintext (as opposed to binary.) Plaintext logging is slower and bigger.
Definition: CBLLog.h:114
CBLLogLevel level
The minimum level of message to write (Required).
Definition: CBLLog.h:100
FLString directory
The directory where log files will be created (Required).
Definition: CBLLog.h:102
A simple reference to a block of memory.
Definition: FLSlice.h:45