|
Couchbase Lite C++
Couchbase Lite C++ API
|
Controls where Couchbase Lite writes its log messages. More...
#include <cbl++/LogSinks.hh>
Static Public Member Functions | |
| static void | setConsole (const ConsoleLogSink &sink) |
| Sets the console log sink. | |
| static ConsoleLogSink | console () |
| Returns the current console log sink. | |
| static void | setCustom (const CustomLogSink &sink) |
| Sets the custom log sink, whose callback receives each log message. | |
| static CustomLogSink | custom () |
| Returns the current custom log sink. | |
| static void | setFile (FileLogSink sink) |
| Sets the file log sink, which writes log messages to files in a directory. | |
| static FileLogSink | file () |
| Returns the current file log sink. | |
Controls where Couchbase Lite writes its log messages.
There are three independent sinks — console, custom (a user callback), and file — each configured separately. Disable a sink by setting its log level to kCBLLogNone.
|
inlinestatic |
Returns the current console log sink.
It is enabled at the warning level for all domains by default.
|
inlinestatic |
Returns the current custom log sink.
It is disabled by default.
|
inlinestatic |
Returns the current file log sink.
It is disabled by default.
|
inlinestatic |
Sets the console log sink.
To disable it, set the sink's log level to kCBLLogNone.
| sink | The console log sink configuration. |
|
inlinestatic |
Sets the custom log sink, whose callback receives each log message.
To disable it, set the sink's log level to kCBLLogNone.
| sink | The custom log sink configuration. |
|
inlinestatic |
Sets the file log sink, which writes log messages to files in a directory.
To disable it, set the sink's log level to kCBLLogNone.
| sink | The file log sink configuration. |