amazon-chime-sdk / com.amazonaws.services.chime.sdk.meetings.utils.logger / Logger

Logger

interface Logger

Logger defines how to write logs for different logging level.

Functions

debug

Emits an debug message if the log level is equal to or lower than debug level.

abstract fun debug(tag: String, msg: String): Unit

error

Emits an error message if the log level is equal to or lower than error level.

abstract fun error(tag: String, msg: String): Unit

getLogLevel

Gets the current log level.

abstract fun getLogLevel(): LogLevel

info

Emits an info message if the log level is equal to or lower than info level.

abstract fun info(tag: String, msg: String): Unit

setLogLevel

Sets the log level.

abstract fun setLogLevel(level: LogLevel): Unit

verbose

Emits an verbose message if the log level is equal to or lower than verbose level.

abstract fun verbose(tag: String, msg: String): Unit

warn

Emits a warning message if the log level is equal to or lower than warn level.

abstract fun warn(tag: String, msg: String): Unit

Inheritors

ConsoleLogger

ConsoleLogger writes logs with console

class ConsoleLogger : Logger