Logger

Stay organized with collections Save and categorize content based on your preferences.
public interface Logger
Known Indirect Subclasses

A simple interface 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 calling setLogger(Logger) or set your own log level by calling TagManager.getLogger().setLogLevel(level);.

Nested Class Summary

enum Logger.LogLevel Log Level setting. 

Public Method Summary

abstract void
d(String message)
abstract void
d(String message, Throwable t)
abstract void
e(String message, Throwable t)
abstract void
e(String message)
abstract Logger.LogLevel
abstract void
i(String message, Throwable t)
abstract void
i(String message)
abstract void
abstract void
v(String message, Throwable t)
abstract void
v(String message)
abstract void
w(String message, Throwable t)
abstract void
w(String message)

Public Methods

public abstract void d (String message)

Logs a debug message.

public abstract void d (String message, Throwable t)

Logs a debug message.

public abstract void e (String message, Throwable t)

Logs an error message.

public abstract void e (String message)

Logs an error message.

public abstract Logger.LogLevel getLogLevel ()

Returns the current log level.

public abstract void i (String message, Throwable t)

Logs an info message.

public abstract void i (String message)

Logs an info message.

public abstract void setLogLevel (Logger.LogLevel 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.

public abstract void v (String message, Throwable t)

Logs a verbose message.

public abstract void v (String message)

Logs a verbose message.

public abstract void w (String message, Throwable t)

Logs a warning message.

public abstract void w (String message)

Logs a warning message.