Save the log to file too.
This commit is contained in:
1 parent
dc2bd1678f
commit
75da7489fd
5 files changed
+32
-9
No files matched your search
@@ -25,7 +25,11 @@
|
||||
|
||||
[SBPrefsController registerUserDefaults];
|
||||
|
||||
debugLogController = [[SBDebugLogController alloc] init];
|
||||
NSString *path = [[NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory,
|
||||
NSUserDomainMask,
|
||||
YES) firstObject] stringByAppendingPathComponent:@"Subler/debugLog.txt"];
|
||||
|
||||
debugLogController = [[SBDebugLogController alloc] initWithLogFile:[NSURL fileURLWithPath:path]];
|
||||
|
||||
[MP42File redirectLogUsingBlock:^(NSString *text) {
|
||||
[debugLogController log:text];
|
||||
|
||||
Reference in new issue
Block a user