Take our developer survey. We want your feedback so we can learn how to improve Google Analytics, and make it an even better tool for you.

<GAILogger> Protocol Reference

Overview

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.

Inherits <NSObject>.

Instance Methods

(void) - verbose:
 Logs message with log level |kGAILogLevelVerbose|. More...
 
(void) - info:
 Logs message with log level |kGAILogLevelInfo|. More...
 
(void) - warning:
 Logs message with log level |kGAILogLevelWarning|. More...
 
(void) - error:
 Logs message with log level |kGAILogLevelError|. More...
 

Properties

GAILogLevel logLevel
 Only messages of |logLevel| and below are logged. More...
 

Method Documentation

- (void) verbose: (NSString *)  message

Logs message with log level |kGAILogLevelVerbose|.

- (void) info: (NSString *)  message

Logs message with log level |kGAILogLevelInfo|.

- (void) warning: (NSString *)  message

Logs message with log level |kGAILogLevelWarning|.

- (void) error: (NSString *)  message

Logs message with log level |kGAILogLevelError|.

Property Documentation

- (GAILogLevel) logLevel
(readwrite, required, nonatomic, assign)

Only messages of |logLevel| and below are logged.