Permalink
Browse files

Tabs changed to spaces in Lumberjack and Xcode directories

  • Loading branch information...
1 parent d253bd7 commit e5cc56ea7f50d020021b4562a2aa4b475e2c0091 @dvor dvor committed Nov 27, 2013
Showing with 16,522 additions and 16,522 deletions.
  1. +1 −1 Lumberjack/DDASLLogger.h
  2. +48 −48 Lumberjack/DDASLLogger.m
  3. +12 −12 Lumberjack/DDAbstractDatabaseLogger.h
  4. +543 −543 Lumberjack/DDAbstractDatabaseLogger.m
  5. +21 −21 Lumberjack/DDFileLogger.h
  6. +850 −850 Lumberjack/DDFileLogger.m
  7. +22 −22 Lumberjack/DDLog.h
  8. +708 −708 Lumberjack/DDLog.m
  9. +14 −14 Lumberjack/DDTTYLogger.h
  10. +1,246 −1,246 Lumberjack/DDTTYLogger.m
  11. +63 −63 Lumberjack/Extensions/DDContextFilterLogFormatter.m
  12. +2 −2 Lumberjack/Extensions/DDDispatchQueueLogFormatter.h
  13. +184 −184 Lumberjack/Extensions/DDDispatchQueueLogFormatter.m
  14. +2 −2 Xcode/BenchmarkIPhone/Classes/BenchmarkIPhoneAppDelegate.h
  15. +2 −2 Xcode/BenchmarkIPhone/Classes/BenchmarkIPhoneAppDelegate.m
  16. +1 −1 Xcode/BenchmarkIPhone/Classes/BenchmarkIPhoneViewController.h
  17. +5 −5 Xcode/BenchmarkIPhone/Classes/BenchmarkIPhoneViewController.m
  18. +1 −1 Xcode/BenchmarkMac/BenchmarkMac/AppDelegate.m
  19. +1 −1 Xcode/BenchmarkMac/BenchmarkMac/main.m
  20. +43 −43 Xcode/ContextFilter/ContextFilterAppDelegate.m
  21. +11 −11 Xcode/ContextFilter/MyContextFilter.m
  22. +2 −2 Xcode/ContextFilter/ThirdPartyFramework.m
  23. +6 −6 Xcode/CoreDataLogger/CoreDataLogger/CoreDataLogger.h
  24. +223 −223 Xcode/CoreDataLogger/CoreDataLogger/CoreDataLogger.m
  25. +2 −2 Xcode/CoreDataLogger/CoreDataLogger/CoreDataLoggerAppDelegate.h
  26. +27 −27 Xcode/CoreDataLogger/CoreDataLogger/CoreDataLoggerAppDelegate.m
  27. +1 −1 Xcode/CoreDataLogger/CoreDataLogger/main.m
  28. +16 −16 Xcode/CustomFormatters/CustomFormattersAppDelegate.m
  29. +2 −2 Xcode/CustomFormatters/TestFormatter.m
  30. +8 −8 Xcode/CustomLogLevels/CustomLogLevelsAppDelegate.m
  31. +60 −60 Xcode/DispatchQueueLogger/DispatchQueueLogger/AppDelegate.m
  32. +1 −1 Xcode/DispatchQueueLogger/DispatchQueueLogger/main.m
  33. +4 −4 Xcode/FineGrainedLogging/FineGrainedLoggingAppDelegate.h
  34. +5 −5 Xcode/FineGrainedLogging/FineGrainedLoggingAppDelegate.m
  35. +2 −2 Xcode/FineGrainedLogging/TimerOne.h
  36. +25 −25 Xcode/FineGrainedLogging/TimerOne.m
  37. +2 −2 Xcode/FineGrainedLogging/TimerTwo.h
  38. +25 −25 Xcode/FineGrainedLogging/TimerTwo.m
  39. +16 −16 Xcode/GlobalLogLevel/GlobalLogLevelAppDelegate.m
  40. +4 −4 Xcode/GlobalLogLevel/Stuff.m
  41. +2 −2 Xcode/LogFileCompressor/CompressingLogFileManager.h
  42. +378 −378 Xcode/LogFileCompressor/CompressingLogFileManager.m
  43. +3 −3 Xcode/LogFileCompressor/LogFileCompressorAppDelegate.h
  44. +19 −19 Xcode/LogFileCompressor/LogFileCompressorAppDelegate.m
  45. +6 −6 Xcode/LumberjackFramework/Desktop/FmwkTest/AppDelegate.m
  46. +1 −1 Xcode/LumberjackFramework/Desktop/FmwkTest/main.m
  47. +10 −10 Xcode/LumberjackFramework/Mobile/LibTest/AppDelegate.m
  48. +3 −3 Xcode/LumberjackFramework/Mobile/LibTest/main.m
  49. +52 −52 Xcode/OverflowTestMac/OverflowTestMacAppDelegate.m
  50. +1 −1 Xcode/OverflowTestMac/SlowLogger.m
  51. +5 −5 Xcode/PerUserLogLevels/PerUserLogLevels/AppDelegate.m
  52. +1 −1 Xcode/PerUserLogLevels/PerUserLogLevels/main.m
  53. +3 −3 Xcode/RollingTestMac/RollingTestMacAppDelegate.h
  54. +39 −39 Xcode/RollingTestMac/RollingTestMacAppDelegate.m
  55. +3 −3 Xcode/SQLiteLogger/FMDB/FMDatabase.h
  56. +57 −57 Xcode/SQLiteLogger/FMDB/FMDatabase.m
  57. +4 −4 Xcode/SQLiteLogger/FMDBLogger.h
  58. +188 −188 Xcode/SQLiteLogger/FMDBLogger.m
  59. +2 −2 Xcode/SQLiteLogger/SQLiteLogger/SQLiteLoggerAppDelegate.h
  60. +27 −27 Xcode/SQLiteLogger/SQLiteLogger/SQLiteLoggerAppDelegate.m
  61. +1 −1 Xcode/SQLiteLogger/SQLiteLogger/main.m
  62. +4 −4 Xcode/Testing/NonArcTest/NonArcTest/AppDelegate.m
  63. +1 −1 Xcode/Testing/NonArcTest/NonArcTest/main.m
  64. +6 −6 Xcode/Testing/RegisteredDynamicLogging/Desktop/RegisteredLoggingTest/Lions.m
  65. +1 −1 ...Testing/RegisteredDynamicLogging/Desktop/RegisteredLoggingTest/RegisteredLoggingTestAppDelegate.h
  66. +16 −16 ...Testing/RegisteredDynamicLogging/Desktop/RegisteredLoggingTest/RegisteredLoggingTestAppDelegate.m
  67. +6 −6 Xcode/Testing/RegisteredDynamicLogging/Desktop/RegisteredLoggingTest/Tigers.m
  68. +1 −1 Xcode/Testing/RegisteredDynamicLogging/Desktop/RegisteredLoggingTest/main.m
  69. +6 −6 Xcode/Testing/RegisteredDynamicLogging/Mobile/RegisteredLoggingTest/Lions.m
  70. +19 −19 .../Testing/RegisteredDynamicLogging/Mobile/RegisteredLoggingTest/RegisteredLoggingTestAppDelegate.m
  71. +6 −6 Xcode/Testing/RegisteredDynamicLogging/Mobile/RegisteredLoggingTest/Tigers.m
  72. +4 −4 Xcode/Testing/RegisteredDynamicLogging/Mobile/RegisteredLoggingTest/main.m
  73. +45 −45 Xcode/Testing/TestXcodeColors/Desktop/TestXcodeColors/AppDelegate.m
  74. +1 −1 Xcode/Testing/TestXcodeColors/Desktop/TestXcodeColors/main.m
  75. +72 −72 Xcode/Testing/TestXcodeColors/Mobile/TextXcodeColors/AppDelegate.m
  76. +1 −1 Xcode/Testing/TestXcodeColors/Mobile/TextXcodeColors/ViewController.h
  77. +3 −3 Xcode/Testing/TestXcodeColors/Mobile/TextXcodeColors/main.m
  78. +9 −9 Xcode/UniversalApp/Classes/UniversalAppAppDelegate.m
  79. +5 −5 Xcode/UniversalApp/Classes/UniversalAppViewController.m
  80. +150 −150 Xcode/WebServerIPhone/Classes/MyHTTPConnection.m
  81. +6 −6 Xcode/WebServerIPhone/Classes/WebServerIPhoneAppDelegate.h
  82. +84 −84 Xcode/WebServerIPhone/Classes/WebServerIPhoneAppDelegate.m
  83. +3 −3 Xcode/WebServerIPhone/Classes/WebSocketLogger.h
  84. +62 −62 Xcode/WebServerIPhone/Classes/WebSocketLogger.m
  85. +12 −12 Xcode/WebServerIPhone/Vendor/CocoaAsyncSocket/GCDAsyncSocket.h
  86. +6,013 −6,013 Xcode/WebServerIPhone/Vendor/CocoaAsyncSocket/GCDAsyncSocket.m
  87. +113 −113 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Categories/DDData.m
  88. +66 −66 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Categories/DDNumber.m
  89. +66 −66 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Categories/DDRange.m
  90. +13 −13 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/HTTPAuthenticationRequest.h
  91. +109 −109 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/HTTPAuthenticationRequest.m
  92. +29 −29 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/HTTPConnection.h
  93. +2,063 −2,063 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/HTTPConnection.m
  94. +1 −1 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/HTTPMessage.h
  95. +39 −39 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/HTTPMessage.m
  96. +30 −30 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/HTTPServer.h
  97. +465 −465 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/HTTPServer.m
  98. +13 −13 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Mime/MultipartFormDataParser.h
  99. +361 −361 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Mime/MultipartFormDataParser.m
  100. +47 −47 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Mime/MultipartMessageHeader.m
  101. +6 −6 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Mime/MultipartMessageHeaderField.h
  102. +154 −154 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Mime/MultipartMessageHeaderField.m
  103. +20 −20 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPAsyncFileResponse.h
  104. +301 −301 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPAsyncFileResponse.m
  105. +2 −2 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPDataResponse.h
  106. +36 −36 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPDataResponse.m
  107. +2 −2 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPDynamicFileResponse.h
  108. +243 −243 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPDynamicFileResponse.m
  109. +11 −11 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPFileResponse.h
  110. +172 −172 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPFileResponse.m
  111. +1 −1 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPRedirectResponse.h
  112. +22 −22 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/Responses/HTTPRedirectResponse.m
  113. +12 −12 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/WebSocket.h
  114. +573 −573 Xcode/WebServerIPhone/Vendor/CocoaHTTPServer/WebSocket.m
View
@@ -28,7 +28,7 @@
@interface DDASLLogger : DDAbstractLogger <DDLogger>
{
- aslclient client;
+ aslclient client;
}
+ (instancetype)sharedInstance;
View
@@ -31,70 +31,70 @@ @implementation DDASLLogger
**/
+ (void)initialize
{
- static BOOL initialized = NO;
- if (!initialized)
- {
- initialized = YES;
-
- sharedInstance = [[[self class] alloc] init];
- }
+ static BOOL initialized = NO;
+ if (!initialized)
+ {
+ initialized = YES;
+
+ sharedInstance = [[[self class] alloc] init];
+ }
}
+ (instancetype)sharedInstance
{
- return sharedInstance;
+ return sharedInstance;
}
- (id)init
{
- if (sharedInstance != nil)
- {
- return nil;
- }
-
- if ((self = [super init]))
- {
- // A default asl client is provided for the main thread,
- // but background threads need to create their own client.
-
- client = asl_open(NULL, "com.apple.console", 0);
- }
- return self;
+ if (sharedInstance != nil)
+ {
+ return nil;
+ }
+
+ if ((self = [super init]))
+ {
+ // A default asl client is provided for the main thread,
+ // but background threads need to create their own client.
+
+ client = asl_open(NULL, "com.apple.console", 0);
+ }
+ return self;
}
- (void)logMessage:(DDLogMessage *)logMessage
{
- NSString *logMsg = logMessage->logMsg;
-
- if (formatter)
- {
- logMsg = [formatter formatLogMessage:logMessage];
- }
-
- if (logMsg)
- {
- const char *msg = [logMsg UTF8String];
-
- int aslLogLevel;
- switch (logMessage->logFlag)
- {
- // Note: By default ASL will filter anything above level 5 (Notice).
- // So our mappings shouldn't go above that level.
-
- case LOG_FLAG_ERROR : aslLogLevel = ASL_LEVEL_ALERT; break;
- case LOG_FLAG_WARN : aslLogLevel = ASL_LEVEL_CRIT; break;
- case LOG_FLAG_INFO : aslLogLevel = ASL_LEVEL_ERR; break;
- case LOG_FLAG_DEBUG : aslLogLevel = ASL_LEVEL_WARNING; break;
- default : aslLogLevel = ASL_LEVEL_NOTICE; break;
- }
-
- asl_log(client, NULL, aslLogLevel, "%s", msg);
- }
+ NSString *logMsg = logMessage->logMsg;
+
+ if (formatter)
+ {
+ logMsg = [formatter formatLogMessage:logMessage];
+ }
+
+ if (logMsg)
+ {
+ const char *msg = [logMsg UTF8String];
+
+ int aslLogLevel;
+ switch (logMessage->logFlag)
+ {
+ // Note: By default ASL will filter anything above level 5 (Notice).
+ // So our mappings shouldn't go above that level.
+
+ case LOG_FLAG_ERROR : aslLogLevel = ASL_LEVEL_ALERT; break;
+ case LOG_FLAG_WARN : aslLogLevel = ASL_LEVEL_CRIT; break;
+ case LOG_FLAG_INFO : aslLogLevel = ASL_LEVEL_ERR; break;
+ case LOG_FLAG_DEBUG : aslLogLevel = ASL_LEVEL_WARNING; break;
+ default : aslLogLevel = ASL_LEVEL_NOTICE; break;
+ }
+
+ asl_log(client, NULL, aslLogLevel, "%s", msg);
+ }
}
- (NSString *)loggerName
{
- return @"cocoa.lumberjack.aslLogger";
+ return @"cocoa.lumberjack.aslLogger";
}
@end
@@ -21,18 +21,18 @@
@interface DDAbstractDatabaseLogger : DDAbstractLogger {
@protected
- NSUInteger saveThreshold;
- NSTimeInterval saveInterval;
- NSTimeInterval maxAge;
- NSTimeInterval deleteInterval;
- BOOL deleteOnEverySave;
-
- BOOL saveTimerSuspended;
- NSUInteger unsavedCount;
- dispatch_time_t unsavedTime;
- dispatch_source_t saveTimer;
- dispatch_time_t lastDeleteTime;
- dispatch_source_t deleteTimer;
+ NSUInteger saveThreshold;
+ NSTimeInterval saveInterval;
+ NSTimeInterval maxAge;
+ NSTimeInterval deleteInterval;
+ BOOL deleteOnEverySave;
+
+ BOOL saveTimerSuspended;
+ NSUInteger unsavedCount;
+ dispatch_time_t unsavedTime;
+ dispatch_source_t saveTimer;
+ dispatch_time_t lastDeleteTime;
+ dispatch_source_t deleteTimer;
}
/**
Oops, something went wrong.

0 comments on commit e5cc56e

Please sign in to comment.