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 interfacestatic enumLogging levels. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToHex(byte[] bytes) Parses byte array to a hex String.static voidPrints a DEBUG message on the LogCat.static voidDeprecated.static voidPrints an ERROR message on the LogCat.static voidDeprecated.UsesetLogLevel(LogLevel)for enable loggingstatic voidPrints a DEBUG message on the LogCat with additional entry tag.static voidPrints a DEBUG message on the LogCat with additional exit tag.static ThermalLog.LogLevelGet log levelstatic byte[]Parses hex String into byte array.static voidPrints an INFO message on the LogCat.static booleanChecks whether library has logging enabledstatic voidSet / change log levelstatic voidPrints a VERBOSE message on the LogCat.static voidPrints 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