Logger

public interface Logger

This interface was deprecated.
Logger interface is deprecated. Use adb shell setprop log.tag.GAv4 DEBUG to enable debug logging for Google Analytics.

Deprecated Analytics Logger interface. Google Analytics will log to logcat under GAv4 tag using Android Log system. By default only ERROR, WARN and INFO levels are enabled. To enable DEBUG level run the following adb command on your device or emulator:

adb shell setprop log.tag.GAv4 DEBUG

To see only Google Analytics messages from logcat use the following command:

adb logcat -v time -s GAv4

For more information consult the logcat and adb developer documentation.

Nested Class Summary

class Logger.LogLevel This class was deprecated. See Logger interface for details.  

Public Method Summary

abstract void
error(Exception exception)
This method was deprecated. See Logger interface for details.
abstract void
error(String message)
This method was deprecated. See Logger interface for details.
abstract int
getLogLevel()
This method was deprecated. See Logger interface for details.
abstract void
info(String message)
This method was deprecated. See Logger interface for details.
abstract void
setLogLevel(int level)
This method was deprecated. See Logger interface for details.
abstract void
verbose(String message)
This method was deprecated. See Logger interface for details.
abstract void
warn(String message)
This method was deprecated. See Logger interface for details.

Public Methods

public abstract void error (Exception exception)

This method was deprecated.
See Logger interface for details.

Used to log runtime errors or unexpected conditions. These errors will likely result in data not being sent to the GA servers.

Parameters
exception The exception that was thrown that caused the error.

public abstract void error (String message)

This method was deprecated.
See Logger interface for details.

Used to log runtime errors or unexpected conditions. These errors will likely result in data not being sent to the GA servers.

Parameters
message A string describing the error that occurred.

public abstract int getLogLevel ()

This method was deprecated.
See Logger interface for details.

Return the current log level.

public abstract void info (String message)

This method was deprecated.
See Logger interface for details.

Used to log information on the flow through the system and other interesting events.

Parameters
message the message to log

public abstract void setLogLevel (int level)

This method was deprecated.
See Logger interface for details.

Logger is deprecated. Setting log level is ignored.

public abstract void verbose (String message)

This method was deprecated.
See Logger interface for details.

Used to log detailed information. This information will probably only be useful during development and debugging.

Parameters
message the message to log

public abstract void warn (String message)

This method was deprecated.
See Logger interface for details.

Used in situations like use of deprecated APIs, poor use of API, near errors, other runtime situations that are undesirable or unexpected, but not necessarily "wrong".

Parameters
message the message to log