com.metaio.sdk
Class MetaioDebug

java.lang.Object
  extended by com.metaio.sdk.MetaioDebug

public final class MetaioDebug
extends Object

This class is used to log all debug messages of the library.

Author:
arsalan.malik

Field Summary
static String TAG
          Log TAG
 
Constructor Summary
MetaioDebug()
           
 
Method Summary
static void enableLogging(boolean enable)
          Enable or disable logging
static void log(int priority, String msg)
          Display log messages with the given priority Log.DEBUG priority is used for deeper debugging and is disabled for the release
static void log(String msg)
          Display log messages with debug priority
static void printStackTrace(int priority, Exception e)
          Log stack trace of an exception
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

public static final String TAG
Log TAG

See Also:
Constant Field Values
Constructor Detail

MetaioDebug

public MetaioDebug()
Method Detail

enableLogging

public static void enableLogging(boolean enable)
Enable or disable logging

Parameters:
enable -

log

public static void log(String msg)
Display log messages with debug priority

Parameters:
msg - Message to display
See Also:
Log#d(String, String)

log

public static void log(int priority,
                       String msg)
Display log messages with the given priority

Log.DEBUG priority is used for deeper debugging and is disabled for the release

Parameters:
priority - Priority, e.g. Log.INFO, Log.ERROR
msg - Message to display
See Also:
Log

printStackTrace

public static void printStackTrace(int priority,
                                   Exception e)
Log stack trace of an exception

Parameters:
priority - Log priority, e.g. Log.ERROR, Log.WARN
e - Exception
See Also:
log