BaseLogger

open class BaseLogger

Singleton logging object. Call setLogPlatform() so that the Logger can work best for specified environment. It only needs to be called once. It defaults to SimpleLogger which works on Java and Android environments, but has reduced functionality. If on Android, you will see "Failed to create VMSDK-Logs directory" in the console. This is normal because it defaults to SimpleLogger. After you set log platform to Android, you should see "Created new log file successfully".

Functions

Link copied to clipboard
open fun deleteLogFile(logFile: String)
Deletes a log file from the log folder
Link copied to clipboard
Link copied to clipboard
open fun logDebug(msg: String)
Convenience method for logging debug messages This method does nothing in Release builds
Link copied to clipboard
open fun logError(msg: String)
Convenience method for logging error messages
Link copied to clipboard
open fun logInfo(msg: String)
Convenience method for logging info messages
Link copied to clipboard
open fun logMessage(msg: String, level: LogLevel)
Logs a message at the given level, as long as the current log level for the instance is equal or greater than the level
Link copied to clipboard
open fun logVerbose(msg: String)
Convenience method for logging verbose messages This method does nothing in Release builds
Link copied to clipboard
open fun logWarn(msg: String)
Convenience method for logging warning messages
Link copied to clipboard
open fun setLogLevel(level: LogLevel)
Set the log level of the logging singleton
Link copied to clipboard
open fun setLogPlatform(logger: Logger)