Class DebugLog

  • All Implemented Interfaces:
    io.scanbot.sdk.util.log.Logger

    
    public final class DebugLog
     implements Logger
                        

    Enables logging to system log/sdcard file.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DebugLog(Context context)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit d(String tag, String message) Writes tag and message to the log file and also calls Log.d with given params.
      final Unit d(String message)
      Unit w(String tag, String message) Writes tag and message to the log file and also calls Log.w with given params.
      final Unit w(String message)
      Unit e(String tag, String message) Writes tag and message to the log file and also calls Log.e with given params.
      final Unit e(String tag, String where, Throwable e) Writes a message about exception to system log and to the file.
      final Unit e(String message)
      Unit i(String tag, String message) Writes tag and message to the log file and also calls Log.i with given params.
      final Unit i(String message)
      Unit logException(Throwable e) Shows log for exception
      Unit logMethod() Shows log for invoked method
      • Methods inherited from class java.lang.Object

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

      • DebugLog

        DebugLog(Context context)
    • Method Detail

      • d

         Unit d(String tag, String message)

        Writes tag and message to the log file and also calls Log.d with given params.

      • w

         Unit w(String tag, String message)

        Writes tag and message to the log file and also calls Log.w with given params.

      • e

         Unit e(String tag, String message)

        Writes tag and message to the log file and also calls Log.e with given params.

      • e

         final Unit e(String tag, String where, Throwable e)

        Writes a message about exception to system log and to the file.

        Parameters:
        tag - tag string
        where - a string describing where the exception happened
        e - an exception which class name and message will be saved in log
      • i

         Unit i(String tag, String message)

        Writes tag and message to the log file and also calls Log.i with given params.