AI-generated Key Takeaways
-
The
Loggerinterface is deprecated and should no longer be used. -
Debug logging for Google Analytics should now be enabled using the adb command
adb shell setprop log.tag.GAv4 DEBUG. -
Google Analytics logs to logcat under the
GAv4tag using the Android Log system. -
By default, only ERROR, WARN, and INFO log levels are enabled for Google Analytics.
-
You can view only Google Analytics messages in logcat using the command
adb logcat -v time -s GAv4.
This interface is 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
Public Method Summary
| abstract void | |
| abstract void | |
| abstract int | |
| abstract void | |
| abstract void | |
| abstract void | |
| abstract void |
Public Methods
public abstract void error ( Exception exception)
This method is 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
public abstract void error ( String message)
This method is 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
public abstract int getLogLevel ()
This method is deprecated.
See Logger
interface for details.
Return the current log level.
public abstract void info ( String message)
This method is deprecated.
See Logger
interface for details.
Used to log information on the flow through the system and other interesting events.
Parameters
public abstract void setLogLevel (int level)
public abstract void verbose ( String message)
This method is deprecated.
See Logger
interface for details.
Used to log detailed information. This information will probably only be useful during development and debugging.
Parameters
public abstract void warn ( String message)
This method is 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".

