Package com.flir.thermalsdk.log
Class ThermalLog
java.lang.Object
com.flir.thermalsdk.log.ThermalLog
Logging helper class. Allows to define what logs are shown as the output.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
Logging levels. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
bytesToHex
(byte[] bytes) Parses byte array to a hex String.static void
Prints a DEBUG message on the LogCat.static void
Deprecated.static void
Prints an ERROR message on the LogCat.static void
Deprecated.UsesetLogLevel(LogLevel)
for enable loggingstatic void
Prints a DEBUG message on the LogCat with additional entry tag.static void
Prints a DEBUG message on the LogCat with additional exit tag.static ThermalLog.LogLevel
Get log levelstatic byte[]
Parses hex String into byte array.static void
Prints an INFO message on the LogCat.static boolean
Checks whether library has logging enabledstatic void
Set / change log levelstatic void
Prints a VERBOSE message on the LogCat.static void
Prints a WARNING message on the LogCat.
-
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.UsesetLogLevel(LogLevel)
for enable loggingenable logging -
disableLogging
Deprecated.UsesetLogLevel(LogLevel)
LogLevel::None for disable loggingdisable logging -
setLogLevel
Set / change log level- Parameters:
lev
- new logging level
-
getLogLevel
Get log level- Returns:
- logging level
-
d
Prints a DEBUG message on the LogCat.- Parameters:
tag
- LogCat tagmessage
- LogCat message
-
e
Prints an ERROR message on the LogCat.- Parameters:
tag
- LogCat tagmessage
- LogCat message
-
i
Prints an INFO message on the LogCat.- Parameters:
tag
- LogCat tagmessage
- LogCat message
-
v
Prints a VERBOSE message on the LogCat.- Parameters:
tag
- LogCat tagmessage
- LogCat message
-
w
Prints a WARNING message on the LogCat.- Parameters:
tag
- LogCat tagmessage
- LogCat message
-
entry
Prints a DEBUG message on the LogCat with additional entry tag.- Parameters:
tag
- LogCat tagmessage
- LogCat message
-
exit
Prints a DEBUG message on the LogCat with additional exit tag.- Parameters:
tag
- LogCat tagmessage
- LogCat message
-
bytesToHex
Parses byte array to a hex String.- Parameters:
bytes
- input byte array- Returns:
- Returns a hex String.
-
hexToByte
Parses hex String into byte array.- Parameters:
input
- input hex array- Returns:
- Returns a byte array.
-
setLogLevel(LogLevel)
LogLevel::None for disable logging