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

# ConsoleLogger

`class ConsoleLogger : Logger`

ConsoleLogger writes logs with console

    // Working with the ConsoleLogger
    val logger = new ConsoleLogger("demo"); // defaults to WARN
    logger.info("info");
    logger.debug("debug");
    logger.warn("warn");
    logger.error("error");

    // Setting logging levels
    val logger = new ConsoleLogger("demo", LogLevel.WARN);
    logger.debug("debug"); // does not print
    logger.setLogLevel(LogLevel.DEBUG)
    logger.debug("debug"); // print

### Constructors

#### <init> | ConsoleLogger writes logs with console `ConsoleLogger(level: LogLevel = LogLevel.INFO)`

### Functions

#### debug | Emits an debug message if the log level is equal to or lower than debug level. `fun debug(tag: String, msg: String): Unit`
#### error | Emits an error message if the log level is equal to or lower than error level. `fun error(tag: String, msg: String): Unit`
#### getLogLevel | Gets the current log level. `fun getLogLevel(): LogLevel`
#### info | Emits an info message if the log level is equal to or lower than info level. `fun info(tag: String, msg: String): Unit`
#### setLogLevel | Sets the log level. `fun setLogLevel(level: LogLevel): Unit`
#### verbose | Emits an verbose message if the log level is equal to or lower than verbose level. `fun verbose(tag: String, msg: String): Unit`
#### warn | Emits a warning message if the log level is equal to or lower than warn level. `fun warn(tag: String, msg: String): Unit`