File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ Pod::Spec.new do |s|
3333 cs . osx . framework = 'SystemConfiguration'
3434 end
3535
36- s . subspec "CocoaLumberjack" do |cs |
37- cs . dependency 'GCDWebServer/Core'
38- cs . dependency 'CocoaLumberjack' , '~> 3'
39- end
40-
4136 s . subspec 'WebDAV' do |cs |
4237 cs . subspec "Core" do |ccs |
4338 ccs . dependency 'GCDWebServer/Core'
@@ -48,11 +43,6 @@ Pod::Spec.new do |s|
4843 ccs . osx . library = 'xml2'
4944 ccs . compiler_flags = '-I$(SDKROOT)/usr/include/libxml2'
5045 end
51-
52- cs . subspec "CocoaLumberjack" do |cscl |
53- cscl . dependency 'GCDWebServer/WebDAV/Core'
54- cscl . dependency 'GCDWebServer/CocoaLumberjack'
55- end
5646 end
5747
5848 s . subspec 'WebUploader' do |cs |
@@ -62,10 +52,5 @@ Pod::Spec.new do |s|
6252 ccs . requires_arc = true
6353 ccs . resource = "GCDWebUploader/GCDWebUploader.bundle"
6454 end
65-
66- cs . subspec "CocoaLumberjack" do |cscl |
67- cscl . dependency 'GCDWebServer/WebUploader/Core'
68- cscl . dependency 'GCDWebServer/CocoaLumberjack'
69- end
7055 end
7156end
Original file line number Diff line number Diff line change @@ -532,11 +532,10 @@ extern NSString* const GCDWebServerAuthenticationMethod_DigestAccess;
532532 *
533533 * Currently supported third-party logging facilities are:
534534 * - XLFacility (by the same author as GCDWebServer): https://github.com/swisspol/XLFacility
535- * - CocoaLumberjack: https://github.com/CocoaLumberjack/CocoaLumberjack
536535 *
537- * For both the built-in logging facility and CocoaLumberjack , the default
538- * logging level is INFO (or DEBUG if the preprocessor constant "DEBUG"
539- * evaluates to non-zero at compile time).
536+ * For the built-in logging facility, the default logging level is INFO
537+ * (or DEBUG if the preprocessor constant "DEBUG" evaluates to non-zero at
538+ * compile time).
540539 *
541540 * It's possible to have GCDWebServer use a custom logging facility by defining
542541 * the "__GCDWEBSERVER_LOGGING_HEADER__" preprocessor constant in Xcode build
Original file line number Diff line number Diff line change 7777#else
7878GCDWebServerLoggingLevel GCDWebServerLogLevel = kGCDWebServerLoggingLevel_Info ;
7979#endif
80- #elif defined(__GCDWEBSERVER_LOGGING_FACILITY_COCOALUMBERJACK__)
81- #if DEBUG
82- DDLogLevel GCDWebServerLogLevel = DDLogLevelDebug;
83- #else
84- DDLogLevel GCDWebServerLogLevel = DDLogLevelInfo;
85- #endif
8680#endif
8781
8882#if !TARGET_OS_IPHONE
@@ -1092,8 +1086,6 @@ @implementation GCDWebServer (Logging)
10921086+ (void )setLogLevel : (int )level {
10931087#if defined(__GCDWEBSERVER_LOGGING_FACILITY_XLFACILITY__)
10941088 [XLSharedFacility setMinLogLevel: level];
1095- #elif defined(__GCDWEBSERVER_LOGGING_FACILITY_COCOALUMBERJACK__)
1096- GCDWebServerLogLevel = level;
10971089#elif defined(__GCDWEBSERVER_LOGGING_FACILITY_BUILTIN__)
10981090 GCDWebServerLogLevel = level;
10991091#endif
Original file line number Diff line number Diff line change @@ -83,27 +83,6 @@ NS_ASSUME_NONNULL_BEGIN
8383#define GWS_DCHECK (__CONDITION__ ) XLOG_DEBUG_CHECK(__CONDITION__)
8484#define GWS_DNOT_REACHED () XLOG_DEBUG_UNREACHABLE()
8585
86- /* *
87- * Automatically detect if CocoaLumberJack is available and if so use
88- * it as a logging facility.
89- */
90-
91- #elif defined(__has_include) && __has_include("CocoaLumberjack/CocoaLumberjack.h")
92-
93- #import < CocoaLumberjack/CocoaLumberjack.h>
94-
95- #define __GCDWEBSERVER_LOGGING_FACILITY_COCOALUMBERJACK__
96-
97- #undef LOG_LEVEL_DEF
98- #define LOG_LEVEL_DEF GCDWebServerLogLevel
99- extern DDLogLevel GCDWebServerLogLevel;
100-
101- #define GWS_LOG_DEBUG (...) DDLogDebug(__VA_ARGS__)
102- #define GWS_LOG_VERBOSE (...) DDLogVerbose(__VA_ARGS__)
103- #define GWS_LOG_INFO (...) DDLogInfo(__VA_ARGS__)
104- #define GWS_LOG_WARNING (...) DDLogWarn(__VA_ARGS__)
105- #define GWS_LOG_ERROR (...) DDLogError(__VA_ARGS__)
106-
10786/* *
10887 * If all of the above fail, then use GCDWebServer built-in
10988 * logging facility.
You can’t perform that action at this time.
0 commit comments