Save the log to file too.

This commit is contained in:
Damiano Galassi committed 2014-10-24 18:17:15 +02:00
1 parent dc2bd1678f
commit 75da7489fd
5 files changed
+32 -9

No files matched your search

+5 -1
View File
@@ -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];