|
| CBL_CORE_API void | c4log_initConsole (C4LogLevel) |
| | Initializes logging by adding a default observer that writes to stderr, just like c4log_consoleObserverCallback.
|
| |
| NODISCARD CBL_CORE_API C4LogObserver * | c4log_newObserver (C4LogObserverConfig config, C4Error *outError) |
| | Creates and registers a log observer, returning a reference.
|
| |
| CBL_CORE_API void | c4log_removeObserver (C4LogObserver *) |
| | Unregisters a log observer.
|
| |
| NODISCARD CBL_CORE_API C4LogObserver * | c4log_replaceObserver (C4LogObserver *oldObs, C4LogObserverConfig config, C4Error *outError) |
| | Atomically unregisters an observer and registers a new one.
|
| |
| CBL_CORE_API void | c4logobserver_flush (C4LogObserver *observer) |
| | Ensures all log messages have been written to the observer's files.
|
| |
| CBL_CORE_API void | c4log_consoleObserverCallback (const C4LogEntry *, void *context) |
| | A C4LogObserverCallback that logs to stderr, or on Android to __android_log_write.
|
| |
| CBL_CORE_API C4LogDomain | c4log_getDomain (const char *name, bool create) |
| | Looks up a named log domain.
|
| |
| CBL_CORE_API const char * | c4log_getDomainName (C4LogDomain) |
| | Returns the name of a log domain.
|
| |
| CBL_CORE_API C4LogDomain | c4log_nextDomain (C4LogDomain) |
| | Returns the next log domain (in arbitrary order) after the given one; or the first domain if the argument is NULL.
|
| |
| CBL_CORE_API C4LogLevel | c4log_getLevel (C4LogDomain) |
| | Returns the current log level of a domain, the minimum level of message it will log.
|
| |
| CBL_CORE_API bool | c4log_willLog (C4LogDomain, C4LogLevel) |
| | Returns true if logging to this domain at this level will have an effect.
|
| |
| CBL_CORE_API void | c4log_setLevel (C4LogDomain c4Domain, C4LogLevel level) |
| | Changes the level of the given log domain.
|
| |
| CBL_CORE_API void | c4log_warnOnErrors (bool) |
| | If set to true, LiteCore will log a warning of the form "LiteCore throwing %s error %d: %s" just before throwing an internal exception.
|
| |
| CBL_CORE_API bool | c4log_getWarnOnErrors (void) |
| | Returns true if warn-on-errors is on; see c4log_warnOnErrors.
|
| |
| CBL_CORE_API void | c4log_enableFatalExceptionBacktrace (void) |
| | Registers a handler with the C++ runtime that will log a backtrace when an uncaught C++ exception occurs, just before the process aborts.
|
| |
| CBL_CORE_API void | c4log (C4LogDomain domain, C4LogLevel level, const char *fmt,...) __printflike(3 |
| | Logs a message/warning/error to a specific domain, if its current level is less than or equal to the given level.
|
| |
| CBL_CORE_API void CBL_CORE_API void | c4vlog (C4LogDomain domain, C4LogLevel level, const char *fmt, va_list args) __printflike(3 |
| | Same as c4log, for use in calling functions that already take variable args.
|
| |
| CBL_CORE_API void CBL_CORE_API void CBL_CORE_API void | c4slog (C4LogDomain domain, C4LogLevel level, FLString msg) |
| | Writes a preformatted message to log files, but does not invoke log callbacks.
|
| |
| NODISCARD CBL_CORE_API bool | c4log_writeToBinaryFile (C4LogFileOptions options, C4Error *error) |
| | Causes log messages to be written to a file, overwriting any previous contents.
|
| |
| CBL_CORE_API FLStringResult | c4log_binaryFilePath (void) |
| | Returns the filesystem path of the directory where log files are kept.
|
| |
| CBL_CORE_API void | c4log_flushLogFiles (void) |
| | Ensures all log messages have been written to the current log files.
|
| |
| CBL_CORE_API C4LogLevel | c4log_binaryFileLevel (void) |
| | Returns the minimum level of log messages to be written to the log file, regardless of what level individual log domains are set to.
|
| |
| CBL_CORE_API void | c4log_setBinaryFileLevel (C4LogLevel level) |
| | Sets the minimum level of log messages to be written to the log file.
|
| |
| CBL_CORE_API void | c4log_writeToCallback (C4LogLevel level, C4LogCallback callback, bool preformatted) |
| | Registers (or unregisters) a log callback, and sets the minimum log level to report.
|
| |
| CBL_CORE_API C4LogCallback | c4log_getCallback (void) |
| | Returns the current logging callback, or the default one if none has been set.
|
| |
| CBL_CORE_API C4LogLevel | c4log_callbackLevel (void) |
| | Returns the minimum level of log messages to be reported via callback, regardless of what level individual log domains are set to.
|
| |
| CBL_CORE_API void | c4log_setCallbackLevel (C4LogLevel level) |
| | Sets the minimum level of log messages to be reported via callback.
|
| |