Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Logging redirect is missing for 2.X #2221
The 1.X branch of code offered a method on CBLManager (CBLManager.redirectLogging) That allowed redirecting the logging to be used by the developer for problems in the field (without access to the device).
CBLog.m features a logging callback, and the underlying couchbase-lite-core supports it well, however the set callback method isn't exposed anymore. (c4log_writeToCallback specifically)
Overwriting the default log callback is an important use case for troubleshooting field devices, but I no longer see a way to call it without a custom build (Something I hesitate to do because it makes EE support less straightforward.
We are also working on an API that lets CBL generate a log file itself, but exposes the path of the file so the app can upload it. The advantage of that is that the log file is written in a very efficient/compact binary format (which can be decoded by the