Package com.mapsindoors.mapssdk
Class dbglog
- java.lang.Object
-
- com.mapsindoors.mapssdk.dbglog
-
public class dbglog extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intASSERTstatic intDEBUGstatic java.lang.StringDEFAULT_GENERAL_TAGstatic booleanENABLE_ASSERTIONSstatic intERRORstatic java.lang.StringGENERAL_TAGstatic intINFOstatic intVERBOSEstatic intWARN
-
Constructor Summary
Constructors Constructor Description dbglog()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidAssert(boolean condition)Throws an assert if the given condition is not met.static voidAssert(boolean condition, java.lang.String message)Throws an assert if the given condition is not met.static voidenableDeveloperMode(boolean enable)/** Enables the Developer modestatic voidenableDeveloperMode(boolean enable, java.lang.String customTagPrefix)/** Enables the Developer modestatic booleanisDebugMode()Deprecated.static booleanisDeveloperMode()static voidLog(java.lang.String tag, java.lang.String message)static voidLogE(java.lang.String tag, java.lang.String message)static voidLogI(java.lang.String tag, java.lang.String message)static voidLogW(java.lang.String tag, java.lang.String message)static voidsetCustomTagPrefix(java.lang.String customTagPrefix)static voidSetLoglevel(int level)Sets the logging levelstatic voidstartTimer()Deprecated.static voidstopTimer(java.lang.String message)Deprecated.static voiduseDebug(boolean debugInfo)Deprecated.UseenableDeveloperMode(boolean, String)instead
-
-
-
Field Detail
-
VERBOSE
public static final int VERBOSE
- See Also:
- Constant Field Values
-
DEBUG
public static final int DEBUG
- See Also:
- Constant Field Values
-
INFO
public static final int INFO
- See Also:
- Constant Field Values
-
WARN
public static final int WARN
- See Also:
- Constant Field Values
-
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
-
ASSERT
public static final int ASSERT
- See Also:
- Constant Field Values
-
ENABLE_ASSERTIONS
public static final boolean ENABLE_ASSERTIONS
- See Also:
- Constant Field Values
-
DEFAULT_GENERAL_TAG
public static java.lang.String DEFAULT_GENERAL_TAG
-
GENERAL_TAG
public static java.lang.String GENERAL_TAG
-
-
Method Detail
-
Assert
public static void Assert(boolean condition)
Throws an assert if the given condition is not met.- Parameters:
condition- If this condition is NOT true the assertion will throw an assert exception
-
Assert
public static void Assert(boolean condition, @NonNull java.lang.String message)Throws an assert if the given condition is not met.- Parameters:
condition- If this condition is NOT true the assertion will throw an assert exceptionmessage- The message to show if this assertion is executed
-
SetLoglevel
public static void SetLoglevel(int level)
Sets the logging level- Parameters:
level- If Log is called only messages with a log type equal to or higher than this level will be shown.
-
Log
public static void Log(@NonNull java.lang.String tag, @NonNull java.lang.String message)
-
LogI
public static void LogI(@NonNull java.lang.String tag, @NonNull java.lang.String message)
-
LogW
public static void LogW(@NonNull java.lang.String tag, @NonNull java.lang.String message)
-
LogE
public static void LogE(@NonNull java.lang.String tag, @NonNull java.lang.String message)
-
startTimer
@Deprecated public static void startTimer()
Deprecated.Starts a timer for instrumenting code Note: This method is not thread safe.
-
stopTimer
@Deprecated public static void stopTimer(@Nullable java.lang.String message)Deprecated.Stops a timer and shows the delta since the timer was started along with a message Note: This method is not thread safe.- Parameters:
message- The message to be shown. The log level will be set to DEBUG
-
useDebug
@Deprecated public static void useDebug(boolean debugInfo)
Deprecated.UseenableDeveloperMode(boolean, String)insteadEnables the Developer mode- Parameters:
debugInfo-trueto enable the dev mode
-
enableDeveloperMode
public static void enableDeveloperMode(boolean enable, @Nullable java.lang.String customTagPrefix)/** Enables the Developer mode- Parameters:
enable-customTagPrefix-- Since:
- 3.2.0
-
enableDeveloperMode
public static void enableDeveloperMode(boolean enable)
/** Enables the Developer mode- Parameters:
enable-- Since:
- 3.2.0
-
setCustomTagPrefix
public static void setCustomTagPrefix(@NonNull java.lang.String customTagPrefix)- Parameters:
customTagPrefix-
-
isDebugMode
@Deprecated public static boolean isDebugMode()
Deprecated.- Returns:
-
isDeveloperMode
public static boolean isDeveloperMode()
- Returns:
- Since:
- 3.2.0
-
-