Couchbase Lite C
Couchbase Lite C API
|
The properties for configuring logging to files. More...
#include <cbl/CBLLog.h>
Data Fields | |
CBLLogLevel | level |
The minimum level of message to write (Required). More... | |
FLString | directory |
The directory where log files will be created (Required). More... | |
uint32_t | maxRotateCount |
Max number of older log files to keep (in addition to current one.) The default is kCBLDefaultLogFileMaxRotateCount. 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... | |
The properties for configuring logging to files.
usePlaintext
results in significantly larger log files and higher CPU usage that may slow down your app; we recommend turning it off in production. FLString CBLLogFileConfiguration::directory |
The directory where log files will be created (Required).
CBLLogLevel CBLLogFileConfiguration::level |
The minimum level of message to write (Required).
uint32_t CBLLogFileConfiguration::maxRotateCount |
Max number of older log files to keep (in addition to current one.) The default is kCBLDefaultLogFileMaxRotateCount.
size_t CBLLogFileConfiguration::maxSize |
The size in bytes at which a file will be rotated out (best effort).
The default is kCBLDefaultLogFileMaxSize.
bool CBLLogFileConfiguration::usePlaintext |
Whether or not to log in plaintext (as opposed to binary.) Plaintext logging is slower and bigger.
The default is kCBLDefaultLogFileUsePlainText.