diff options
author | Riz <rsattar@gmail.com> | 2017-05-24 17:29:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-24 17:29:09 -0700 |
commit | 2c133b34b0d3cbbe27b9206d57fe69140e5db6b3 (patch) | |
tree | 7c3959cd04e4a9b1c0fced611d51253353f402fa /Firebase/Messaging/FIRMessagingLogger.h | |
parent | db7f85b9d43906adb99524185d7c375d2161c152 (diff) |
Clean up logging and configuration in Messaging (#28)
* Remove mostly unused code from FIRMessagingLogger
This cleans up some left-over old logging logic from before we moved to FIRLogger in Firebase Core. We no longer need this logging functionality.
* Delete FIRMessagingConfig.{h,m}
We no longer need a config class to store an unused log level filter (that filter is no longer needed).
Diffstat (limited to 'Firebase/Messaging/FIRMessagingLogger.h')
-rw-r--r-- | Firebase/Messaging/FIRMessagingLogger.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Firebase/Messaging/FIRMessagingLogger.h b/Firebase/Messaging/FIRMessagingLogger.h index cd3c29a..d0ff41a 100644 --- a/Firebase/Messaging/FIRMessagingLogger.h +++ b/Firebase/Messaging/FIRMessagingLogger.h @@ -14,7 +14,6 @@ * limitations under the License. */ -#import "FIRMessagingConfig.h" #import "FIRMMessageCode.h" // The convenience macros are only defined if they haven't already been defined. @@ -35,37 +34,8 @@ #endif // !defined(FIRMessagingLoggerInfo) -/// Protocols -@protocol FIRMessagingLogFormatter <NSObject> -- (NSString *)stringForFunc:(NSString *)func - withFormat:(NSString *)fmt - valist:(va_list)args - level:(FIRMessagingLogLevel)level NS_FORMAT_FUNCTION(2, 0); -@end - -/// FIRMessagingLogWriter -@protocol FIRMessagingLogWriter <NSObject> -// Writes the given log message to where the log writer is configured to write. -- (void)logMessage:(NSString *)msg level:(FIRMessagingLogLevel)level; -@end - -/// FIRMessagingLogFilter -@protocol FIRMessagingLogFilter <NSObject> -// Returns YES if |msg| at |level| should be logged; NO otherwise. -- (BOOL)filterAllowsMessage:(NSString *)msg level:(FIRMessagingLogLevel)level; -@end - -@interface FIRMessagingLogLevelFilter : NSObject <FIRMessagingLogFilter> -- (instancetype)initWithLevel:(FIRMessagingLogLevel)level; -@end - - @interface FIRMessagingLogger : NSObject -@property(nonatomic, readwrite, strong) id<FIRMessagingLogFilter> filter; -@property(nonatomic, readwrite, strong) id<FIRMessagingLogWriter> writer; -@property(nonatomic, readwrite, strong) id<FIRMessagingLogFormatter> formatter; - - (void)logFuncDebug:(const char *)func messageCode:(FIRMessagingMessageCode)messageCode msg:(NSString *)fmt, ... NS_FORMAT_FUNCTION(3, 4); |