Android – Logging API

Android – Logging API

RevTwo logging functions allow logs to be stored, then viewed during a support session. The logging functions output using the native log functions so you can see them in the debug console, and still store the logs for later viewing. The log functions take a level parameter that lets a support tech filter by level. They also send logging output in real time during a session. The log history is 1000 deep.

RevTwo logging stores a timestamp and level. Trace is lowest, then Debug, Warn, and Error is highest. In the support dashboard the tech can filter by level. Log entries will be displayed in real time on the support dashboard if a session is active.

  • Trace: This level is designed to show information messages identifying how your app is running.
  • Debug: These logs will show information that would be useful when trying to debug your app.
  • Warning: This level shows potentially harmful situations.
  • Error: This level designates error events.

Android programmers can use these logging functions:

public static void Error(String text, Context context)
public static void Warn(String text, Context context)
public static void Debug(String text, Context context)
public static void Trace(String text, Context context)

as in this example:

RevTwo.Trace("Hello, World!”, context);