summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/cordova-plugin-google-analytics/ios/GAILogger.h
blob: 06291f2c1bd2040322c49b9dfa814fb2e7d2a6c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*!
 @header    GAILogger.h
 @abstract  Google Analytics iOS SDK Source
 @copyright Copyright 2011 Google Inc. All rights reserved.
 */

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, GAILogLevel) {
  kGAILogLevelNone = 0,
  kGAILogLevelError = 1,
  kGAILogLevelWarning = 2,
  kGAILogLevelInfo = 3,
  kGAILogLevelVerbose = 4
};

/*!
 Protocol to be used for logging debug and informational messages from the SDK.
 Implementations of this protocol can be provided to the |GAI| class,
 to be used as the logger by the SDK.  See the |logger| property in GAI.h.
 */
@protocol GAILogger<NSObject>
@required

/*!
 Only messages of |logLevel| and below are logged.
 */
@property (nonatomic, assign) GAILogLevel logLevel;

/*!
 Logs message with log level |kGAILogLevelVerbose|.
 */
- (void)verbose:(NSString *)message;

/*!
 Logs message with log level |kGAILogLevelInfo|.
 */
- (void)info:(NSString *)message;

/*!
 Logs message with log level |kGAILogLevelWarning|.
 */
- (void)warning:(NSString *)message;

/*!
 Logs message with log level |kGAILogLevelError|.
 */
- (void)error:(NSString *)message;
@end