TAGLogger Protocol Reference

TAGLogger Protocol Reference

Overview

A protocol for error/warning/info/debug/verbose logging.

By default, Google Tag Manager logs error/warning messages and ignores info/debug/verbose messages. You can install your own logger by setting the TAGManager::logger property.

Public Member Functions

(void) - error:
 Logs an error message.
(void) - warning:
 Logs a warning message.
(void) - info:
 Logs an info message.
(void) - debug:
 Logs a debug message.
(void) - verbose:
 Logs a verbose message.
(void) - setLogLevel:
 Sets the log level.
(TAGLoggerLogLevelType- logLevel
 Returns the current log level.

Member Function Documentation

- (void) error: (NSString *)  message

Logs an error message.

Parameters:
messageThe error message to be logged.
- (void) warning: (NSString *)  message

Logs a warning message.

Parameters:
messageThe warning message to be logged.
- (void) info: (NSString *)  message

Logs an info message.

Parameters:
messageThe info message to be logged.
- (void) debug: (NSString *)  message

Logs a debug message.

Parameters:
messageThe debug message to be logged.
- (void) verbose: (NSString *)  message

Logs a verbose message.

Parameters:
messageThe verbose message to be logged.
- (void) setLogLevel: (TAGLoggerLogLevelType logLevel

Sets the log level.

It is up to the implementation how the log level is used, but log messages outside the log level should not be output.

Returns the current log level.