public class

Logger

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

Class Overview

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

Summary

Public Methods
static void addListener(LoggerListener listener)
Adds a listener.
static void disableDefaultLogger()
Disables Airship from using the default logger.
static void removeListener(LoggerListener listener)
Removes a listener.
static void setTag(String tag)
Sets the logger tag.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void addListener (LoggerListener listener)

Adds a listener. Listener callbacks are synchronized but will be made from the originating thread. Responsibility for any additional threading guarantees falls on the application.

Parameters
listener The listener.

public static void disableDefaultLogger ()

Disables Airship from using the default logger.

public static void removeListener (LoggerListener listener)

Removes a listener.

Parameters
listener The listener.

public static void setTag (String tag)

Sets the logger tag.

Parameters
tag The tag.