public class

Logger

extends Object
java.lang.Object
   ↳ com.urbanairship.Logger

Class Overview

Shared logging wrapper for all Urban Airship log entries. This class serves to consolidate the tag and log level in a single location.

See Also
  • android.util.Log

Summary

Fields
public static String TAG The current log tag.
public static int logLevel The current log level, as defined by android.util.Log.
Public Methods
static void debug(String s)
Send a debug log message.
static void debug(String s, Throwable t)
Send a debug log message.
static void error(String s)
Send an error log message.
static void error(String s, Throwable t)
Send an error log message.
static void error(Throwable t)
Send an error log message.
static void info(String s)
Send an info log message.
static void info(String s, Throwable t)
Send an info log message.
static void verbose(String s)
Send a verbose log message.
static void warn(Throwable t)
Send a warning log message.
static void warn(String s, Throwable t)
Send a warning log message.
static void warn(String s)
Send a warning log message.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static String TAG

The current log tag. Defaults to "UALib".

public static int logLevel

The current log level, as defined by android.util.Log. Defaults to android.util.Log.ERROR.

Public Methods

public static void debug (String s)

Send a debug log message.

Parameters
s The message you would like logged.

public static void debug (String s, Throwable t)

Send a debug log message.

Parameters
s The message you would like logged.
t An exception to log

public static void error (String s)

Send an error log message.

Parameters
s The message you would like logged.

public static void error (String s, Throwable t)

Send an error log message.

Parameters
s The message you would like logged.
t An exception to log

public static void error (Throwable t)

Send an error log message.

Parameters
t An exception to log

public static void info (String s)

Send an info log message.

Parameters
s The message you would like logged.

public static void info (String s, Throwable t)

Send an info log message.

Parameters
s The message you would like logged.
t An exception to log

public static void verbose (String s)

Send a verbose log message.

Parameters
s The message you would like logged.

public static void warn (Throwable t)

Send a warning log message.

Parameters
t An exception to log

public static void warn (String s, Throwable t)

Send a warning log message.

Parameters
s The message you would like logged.
t An exception to log

public static void warn (String s)

Send a warning log message.

Parameters
s The message you would like logged.