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 int
ASSERT
static int
DEBUG
static java.lang.String
DEFAULT_GENERAL_TAG
static boolean
ENABLE_ASSERTIONS
static int
ERROR
static java.lang.String
GENERAL_TAG
static int
INFO
static int
VERBOSE
static int
WARN
-
Constructor Summary
Constructors Constructor Description dbglog()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
Assert(boolean condition)
Throws an assert if the given condition is not met.static void
Assert(boolean condition, java.lang.String message)
Throws an assert if the given condition is not met.static void
enableDeveloperMode(boolean enable)
/** Enables the Developer modestatic void
enableDeveloperMode(boolean enable, java.lang.String customTagPrefix)
/** Enables the Developer modestatic boolean
isDebugMode()
Deprecated.static boolean
isDeveloperMode()
static void
Log(java.lang.String tag, java.lang.String message)
static void
LogE(java.lang.String tag, java.lang.String message)
static void
LogI(java.lang.String tag, java.lang.String message)
static void
LogW(java.lang.String tag, java.lang.String message)
static void
setCustomTagPrefix(java.lang.String customTagPrefix)
static void
SetLoglevel(int level)
Sets the logging levelstatic void
startTimer()
Deprecated.static void
stopTimer(java.lang.String message)
Deprecated.static void
useDebug(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
-true
to 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
-
-