LogLevel

public static enum MoPubLog.LogLevel implements LogLevelInt

Enums representing different verbosity levels for SDK log statements. Refer to our instructions on using device logs for usage assistance.

Public Constants

public final /DEBUG

  • Description: An enum corresponding to the most verbose log level used by the MoPub SDK. All log statements will be printed to the console. It may also be in use by mediation ad SDKs if the adapters forward it.

public final /INFO

  • Description: An enum corresponding to the least verbose log level used by the MoPub SDK. Not all log statements will be printed to the console. It may also be in use by mediation ad SDKs if the adapters forward it.

public final /NONE

  • Description: An enum corresponding to not setting any log level for the MoPub SDK, and mediation ad SDKs. No log statements will be printed to the console wherever applicable (some mediation ad SDKs may continue logging events if adapters cannot mute them via an API).

Public Methods

public static LogLevel /valueOf(final int level)

  • Description: Returns the LogLevel corresponding to the int value passed in. Will return NONE by default. This valueOf overload is used to get the associated LogLevel enum from an int.

  • Parameters:

    • level: The int value to look up the corresponding LogLevel.

public static LogLevel /valueOf(String name)

  • Description: Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Extraneous whitespace characters are not permitted.

  • Parameters:

    • name: The name of the enum constant to be returned.

Last updated February 11, 2020

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2020 MoPub (a division of Twitter, Inc.)