Couchbase Lite C
Couchbase Lite C API
Data Fields
CBLLogFileConfiguration Struct Reference

The properties for configuring logging to files. More...

#include <cbl/CBLLog.h>

Data Fields

CBLLogLevel level
 The minimum level of message to write. More...
 
FLString directory
 The directory where log files will be created. More...
 
uint32_t maxRotateCount
 Max number of older log files to keep (in addition to current one.) More...
 
size_t maxSize
 The size in bytes at which a file will be rotated out (best effort). More...
 
bool usePlaintext
 Whether or not to log in plaintext (as opposed to binary.) Plaintext logging is slower and bigger. More...
 

Detailed Description

The properties for configuring logging to files.

Warning
usePlaintext results in significantly larger log files and higher CPU usage that may slow down your app; we recommend turning it off in production.

Field Documentation

◆ directory

FLString CBLLogFileConfiguration::directory

The directory where log files will be created.

◆ level

CBLLogLevel CBLLogFileConfiguration::level

The minimum level of message to write.

◆ maxRotateCount

uint32_t CBLLogFileConfiguration::maxRotateCount

Max number of older log files to keep (in addition to current one.)

◆ maxSize

size_t CBLLogFileConfiguration::maxSize

The size in bytes at which a file will be rotated out (best effort).

◆ usePlaintext

bool CBLLogFileConfiguration::usePlaintext

Whether or not to log in plaintext (as opposed to binary.) Plaintext logging is slower and bigger.


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