using System;
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)
    {
        if (MaxSdk.DisableAllLogs) return;
        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.DisableAllLogs && !MaxSdk.IsVerboseLoggingEnabled()) return;
        Debug.Log("Debug [" + SdkTag + "] " + message);
    }
    /// 
    /// Log warning messages.
    /// 
    public static void UserWarning(string message)
    {
        if (MaxSdk.DisableAllLogs) return;
        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.DisableAllLogs && !MaxSdk.IsVerboseLoggingEnabled()) return;
        Debug.LogWarning("Warning [" + SdkTag + "] " + message);
    }
    /// 
    /// Log error messages.
    /// 
    public static void UserError(string message)
    {
        if (MaxSdk.DisableAllLogs) return;
        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.DisableAllLogs && !MaxSdk.IsVerboseLoggingEnabled()) return;
        Debug.LogError("Error [" + SdkTag + "] " + message);
    }
    /// 
    /// Log exceptions.
    /// 
    public static void LogException(Exception exception)
    {
        if (MaxSdk.DisableAllLogs) return;
        
        Debug.LogException(exception);
    }
}