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

<init>

ConsoleLogger(level: LogLevel = LogLevel.INFO)

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