LiteCore
Couchbase Lite cross-platform core implementation
Loading...
Searching...
No Matches
C4LogObserverConfig Struct Reference

Configuration for creating a C4LogObserver, which may either call a callback or write to a file (but not both.) Exactly one of callback and fileOptions must be non-NULL. More...

#include <c4Log.h>

Data Fields

C4LogLevel defaultLevel
 Log level for domains not listed.
 
const C4DomainLeveldomains
 List of domains and levels (may be NULL if empty)
 
size_t domainsCount
 Length of domains array.
 
C4LogObserverCallback callback
 C callback to invoke.
 
void * callbackContext
 context value to pass to the callback
 
const C4LogFileOptionsfileOptions
 Config for file logging (Note: log_level is ignored)
 

Detailed Description

Configuration for creating a C4LogObserver, which may either call a callback or write to a file (but not both.) Exactly one of callback and fileOptions must be non-NULL.

Field Documentation

◆ callback

C4LogObserverCallback C4LogObserverConfig::callback

C callback to invoke.

◆ callbackContext

void* C4LogObserverConfig::callbackContext

context value to pass to the callback

◆ defaultLevel

C4LogLevel C4LogObserverConfig::defaultLevel

Log level for domains not listed.

◆ domains

const C4DomainLevel* C4LogObserverConfig::domains

List of domains and levels (may be NULL if empty)

◆ domainsCount

size_t C4LogObserverConfig::domainsCount

Length of domains array.

◆ fileOptions

const C4LogFileOptions* C4LogObserverConfig::fileOptions

Config for file logging (Note: log_level is ignored)


The documentation for this struct was generated from the following file: