session-ios/Signal/src/profiling/protocols/Logging.h
2014-05-06 19:41:08 +02:00

21 lines
942 B
Objective-C

#import <Foundation/Foundation.h>
#import "OccurrenceLogger.h"
#import "ConditionLogger.h"
#import "ValueLogger.h"
@protocol JitterQueueNotificationReceiver;
@protocol Logging <NSObject>
/// Note: the logger MUST NOT store a reference to the given sender. Calling this method, or storing its result, must not create a reference cycle.
-(id<OccurrenceLogger>) getOccurrenceLoggerForSender:(id)sender withKey:(NSString*)key;
/// Note: the logger MUST NOT store a reference to the given sender. Calling this method, or storing its result, must not create a reference cycle.
-(id<ConditionLogger>) getConditionLoggerForSender:(id)sender;
/// Note: the logger MUST NOT store a reference to the given sender. Calling this method, or storing its result, must not create a reference cycle.
-(id<ValueLogger>) getValueLoggerForValue:(id)valueIdentity from:(id)sender;
-(id<JitterQueueNotificationReceiver>) jitterQueueNotificationReceiver;
@end