using UnityEngine;
public class MaxSdkLogger
{
private const string SdkTag = "AppLovin MAX";
public const string KeyVerboseLoggingEnabled = "com.applovin.verbose_logging_enabled";
///
/// Log debug messages.
///
public static void UserDebug(string message)
{
Debug.Log("Debug [" + SdkTag + "] " + message);
}
///
/// Log debug messages when verbose logging is enabled.
///
/// Verbose logging can be enabled by calling or via the Integration Manager for build time logs.
///
public static void D(string message)
{
if (MaxSdk.IsVerboseLoggingEnabled())
{
Debug.Log("Debug [" + SdkTag + "] " + message);
}
}
///
/// Log warning messages.
///
public static void UserWarning(string message)
{
Debug.LogWarning("Warning [" + SdkTag + "] " + message);
}
///
/// Log warning messages when verbose logging is enabled.
///
/// Verbose logging can be enabled by calling or via the Integration Manager for build time logs.
///
public static void W(string message)
{
if (MaxSdk.IsVerboseLoggingEnabled())
{
Debug.LogWarning("Warning [" + SdkTag + "] " + message);
}
}
///
/// Log error messages.
///
public static void UserError(string message)
{
Debug.LogError("Error [" + SdkTag + "] " + message);
}
///
/// Log error messages when verbose logging is enabled.
///
/// Verbose logging can be enabled by calling or via the Integration Manager for build time logs.
///
public static void E(string message)
{
if (MaxSdk.IsVerboseLoggingEnabled())
{
Debug.LogError("Error [" + SdkTag + "] " + message);
}
}
}