Class dbglog


  • public class dbglog
    extends java.lang.Object
    • 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 mode
      static void enableDeveloperMode​(boolean enable, java.lang.String customTagPrefix)
      /** Enables the Developer mode
      static 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 level
      static void startTimer()
      Deprecated. 
      static void stopTimer​(java.lang.String message)
      Deprecated. 
      static void useDebug​(boolean debugInfo)
      Deprecated.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • dbglog

        public dbglog()
    • 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 exception
        message - 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.
        Enables 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