Skip to content

Commit c75fc66

Browse files
committed
Adapt c_playground
1 parent 30bca7d commit c75fc66

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

c_playground/main.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ void log_callback(CBLLogDomain domain, CBLLogLevel level, FLString message) {
2323
}
2424

2525
int main(void) {
26-
CBLLog_SetCallbackLevel(kCBLLogVerbose);
27-
CBLLog_SetConsoleLevel(kCBLLogVerbose);
28-
CBLLog_SetCallback(log_callback);
26+
CBLConsoleLogSink log_sink = {};
27+
log_sink.level = kCBLLogDebug;
28+
log_sink.domains = kCBLLogDomainMaskAll;
29+
30+
CBLLogSinks_SetConsole(log_sink);
2931

3032
// Open database
3133
CBLError error;

0 commit comments

Comments
 (0)