2
0

Update log sink API.

This commit is contained in:
Maarten Billemont 2020-04-15 19:08:11 -04:00
parent b79ed1ca0b
commit ff9596aef0

View File

@ -32,7 +32,7 @@
@end
MPLogSink mpw_log_sink_pearl;
void mpw_log_sink_pearl(const MPLogEvent *record) {
bool mpw_log_sink_pearl(const MPLogEvent *record) {
PearlLogLevel level = PearlLogLevelInfo;
switch (record->level) {
@ -58,6 +58,7 @@ void mpw_log_sink_pearl(const MPLogEvent *record) {
[[PearlLogger get] inFile:[@(record->file) lastPathComponent] atLine:record->line fromFunction:@(record->function)
withLevel:level text:@(record->message)];
return YES;
}
@implementation MPAppDelegate_Shared