//kotlin-sdk/fr.gasmartbuilding.gasmartaccessreadersdk/Logger
Logger
[androidJvm]\ object Logger
Logger singleton to handle application logs. Log level can be set to control the logging detail.
Types
Name | Summary |
---|---|
LogLevel | [androidJvm] enum LogLevel : Enum<Logger.LogLevel> Possible levels of logging. |
Functions
Name | Summary |
---|---|
debug | [androidJvm] fun debug(message: String) Logs debug messages if the log level is DEBUG or above. |
error | [androidJvm] fun error(message: String) Logs error messages if the log level is ERROR or above. |
info | [androidJvm] fun info(message: String) Logs informational messages if the log level is INFO or above. |
initialize | [androidJvm] fun initialize(logLevel: Logger.LogLevel, callbacks: GASmartAccessReaderCallbacks) Setup the logger with callback and log level. |
warning | [androidJvm] fun warning(message: String) Logs warning messages if the log level is WARNING or above. |