public final class

Log

extends Object
java.lang.Object
   ↳ com.ad4screen.sdk.Log

Class Overview

A4S SDK central logging facility.
With this API you can enable or disable SDK output to ease debugging while developping your app.
Important as this class is a singleton, there is one instance per process (=JVM).
If you wish to see A4S Service process output, you will have to enable logging from your Application class in correct process.

See Also

Summary

Constants
String TAG
Public Methods
static void debug(String prefix, JSONObject jsonObject)
static void debug(String prefix, JSONArray jsonArray)
static void debug(String message, Throwable error)
static void debug(String message)
static void error(String message)
static void error(String prefix, JSONObject jsonObject)
static void error(String prefix, JSONArray jsonArray)
static void error(String message, Throwable error)
static void info(String prefix, JSONObject jsonObject)
static void info(String prefix, JSONArray jsonArray)
static void info(String message)
static void info(String message, Throwable error)
static void internal(String msg)
static void internal(String prefix, JSONObject jsonObject)
static void internal(String prefix, JSONArray jsonArray)
static void internal(String msg, Throwable error)
static void setEnabled(boolean enabled)
Enables or disables Ad4Screen logging output in this process.
static void setInternalLoggingEnabled(boolean enabled)
Enables or disables Ad4Screen internal logging output in this process.
static void verbose(String message)
static void verbose(String prefix, JSONArray jsonArray)
static void verbose(String prefix, JSONObject jsonObject)
static void warn(String message, Throwable error)
static void warn(String prefix, JSONArray jsonArray)
static void warn(String prefix, JSONObject jsonObject)
static void warn(String message)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String TAG

Constant Value: "com.ad4screen.sdk"

Public Methods

public static void debug (String prefix, JSONObject jsonObject)

public static void debug (String prefix, JSONArray jsonArray)

public static void debug (String message, Throwable error)

public static void debug (String message)

public static void error (String message)

public static void error (String prefix, JSONObject jsonObject)

public static void error (String prefix, JSONArray jsonArray)

public static void error (String message, Throwable error)

public static void info (String prefix, JSONObject jsonObject)

public static void info (String prefix, JSONArray jsonArray)

public static void info (String message)

public static void info (String message, Throwable error)

public static void internal (String msg)

public static void internal (String prefix, JSONObject jsonObject)

public static void internal (String prefix, JSONArray jsonArray)

public static void internal (String msg, Throwable error)

public static void setEnabled (boolean enabled)

Enables or disables Ad4Screen logging output in this process.

Parameters
enabled True to enable Ad4Screen logging, false otherwise.

public static void setInternalLoggingEnabled (boolean enabled)

Enables or disables Ad4Screen internal logging output in this process.

Parameters
enabled True to enable Ad4Screen internal logging, false otherwise.

public static void verbose (String message)

public static void verbose (String prefix, JSONArray jsonArray)

public static void verbose (String prefix, JSONObject jsonObject)

public static void warn (String message, Throwable error)

public static void warn (String prefix, JSONArray jsonArray)

public static void warn (String prefix, JSONObject jsonObject)

public static void warn (String message)