Logger

open class Logger

SW camera library logger. You can provide your own logger delegate implementation, to be able to log in a different way. By default the log level is set to DEBUG when the build type is debug, and OFF in release. The default logger implementation logs in Android's LogCat.

Types

Link copied to clipboard
interface LoggerDelegate
Link copied to clipboard
enum LogLevel

Functions

Link copied to clipboard
open fun debug(@NonNull tag: String, @NonNull message: String)
Link copied to clipboard
open fun error(@NonNull tag: String, @NonNull message: String)
open fun error(    @NonNull tag: String,     @NonNull message: String,     @Nullable exception: Throwable)
Link copied to clipboard
open fun info(@NonNull tag: String, @NonNull message: String)
Link copied to clipboard
open fun resetLoggerDelegate()
Link copied to clipboard
open fun setLoggerDelegate(@Nullable delegate: Logger.LoggerDelegate)
Link copied to clipboard
open fun setLogLevel(@NonNull level: Logger.LogLevel)