Class ThermalLog

java.lang.Object
com.flir.thermalsdk.log.ThermalLog

public final class ThermalLog extends Object
Logging helper class. Allows to define what logs are shown as the output.
  • Constructor Details

    • ThermalLog

      public ThermalLog()
  • Method Details

    • logEnabled

      public static boolean logEnabled()
      Checks whether library has logging enabled
      Returns:
      Returns true if library has logging enabled, otherwise returns false.
    • enableLogging

      @Deprecated public static void enableLogging()
      Deprecated.
      Use setLogLevel(LogLevel) for enable logging
      enable logging
    • disableLogging

      @Deprecated public static void disableLogging()
      Deprecated.
      Use setLogLevel(LogLevel) LogLevel::None for disable logging
      disable logging
    • setLogLevel

      public static void setLogLevel(ThermalLog.LogLevel lev)
      Set / change log level
      Parameters:
      lev - new logging level
    • getLogLevel

      public static ThermalLog.LogLevel getLogLevel()
      Get log level
      Returns:
      logging level
    • d

      public static void d(String tag, String message)
      Prints a DEBUG message on the LogCat.
      Parameters:
      tag - LogCat tag
      message - LogCat message
    • e

      public static void e(String tag, String message)
      Prints an ERROR message on the LogCat.
      Parameters:
      tag - LogCat tag
      message - LogCat message
    • i

      public static void i(String tag, String message)
      Prints an INFO message on the LogCat.
      Parameters:
      tag - LogCat tag
      message - LogCat message
    • v

      public static void v(String tag, String message)
      Prints a VERBOSE message on the LogCat.
      Parameters:
      tag - LogCat tag
      message - LogCat message
    • w

      public static void w(String tag, String message)
      Prints a WARNING message on the LogCat.
      Parameters:
      tag - LogCat tag
      message - LogCat message
    • entry

      public static void entry(String tag, String message)
      Prints a DEBUG message on the LogCat with additional entry tag.
      Parameters:
      tag - LogCat tag
      message - LogCat message
    • exit

      public static void exit(String tag, String message)
      Prints a DEBUG message on the LogCat with additional exit tag.
      Parameters:
      tag - LogCat tag
      message - LogCat message
    • bytesToHex

      public static String bytesToHex(byte[] bytes)
      Parses byte array to a hex String.
      Parameters:
      bytes - input byte array
      Returns:
      Returns a hex String.
    • hexToByte

      public static byte[] hexToByte(String input)
      Parses hex String into byte array.
      Parameters:
      input - input hex array
      Returns:
      Returns a byte array.