Class BacktraceLogger


  • public class BacktraceLogger
    extends java.lang.Object
    Backtrace Logger class for logging messages from inside library
    • Constructor Summary

      Constructors 
      Constructor Description
      BacktraceLogger()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int d​(java.lang.String tag, java.lang.String message)  
      static int e​(java.lang.String tag, java.lang.String message)
      Log messages that suggest error or something that should not happen
      static int e​(java.lang.String tag, java.lang.String message, java.lang.Throwable tr)
      Log messages that suggest error or something that should not happen
      static void setLevel​(LogLevel level)
      set logging level from which all messages should be logged to the console
      static int w​(java.lang.String tag, java.lang.String message)
      Log messages that suggest something unexpected or rare has happened, which isn't an error.
      • Methods inherited from class java.lang.Object

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

      • BacktraceLogger

        public BacktraceLogger()
    • Method Detail

      • setLevel

        public static void setLevel​(LogLevel level)
        set logging level from which all messages should be logged to the console
        Parameters:
        level - login level
      • d

        public static int d​(java.lang.String tag,
                            java.lang.String message)
        Parameters:
        tag - source of logs, usually identifies the class or activity
        message - text information which should be logged
        Returns:
        the number of bytes written
      • w

        public static int w​(java.lang.String tag,
                            java.lang.String message)
        Log messages that suggest something unexpected or rare has happened, which isn't an error.
        Parameters:
        tag - source of logs, usually identifies the class or activity
        message - text information which should be logged
        Returns:
        the number of bytes written
      • e

        public static int e​(java.lang.String tag,
                            java.lang.String message)
        Log messages that suggest error or something that should not happen
        Parameters:
        tag - source of logs, usually identifies the class or activity
        message - text information which should be logged
        Returns:
        the number of bytes written
      • e

        public static int e​(java.lang.String tag,
                            java.lang.String message,
                            java.lang.Throwable tr)
        Log messages that suggest error or something that should not happen
        Parameters:
        tag - source of logs, usually identifies the class or activity
        message - text information which should be logged
        tr - an exception to log
        Returns:
        the number of bytes written