Skip to content

Commit 9865fd0

Browse files
Capture apple system logs into our logfile, too
1 parent 634e2af commit 9865fd0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Monal/Classes/HelperTools.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,6 +2231,12 @@ +(void) configureLogging
22312231
_stdoutRedirector = [[MLStreamRedirect alloc] initWithStream:stdout];
22322232
printf("stdout redirection complete...");
22332233

2234+
//redirect apple system logs, too
2235+
#pragma clang diagnostic push
2236+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
2237+
[DDASLLogCapture start];
2238+
#pragma clang diagnostic pop
2239+
22342240
NSString* containerUrl = [[HelperTools getContainerURLForPathComponents:@[]] path];
22352241
DDLogInfo(@"Logfile dir: %@", containerUrl);
22362242

0 commit comments

Comments
 (0)