console method

dynamic console({
  1. required String logs,
  2. TencentCloudChatLogLevel? logLevel,
})

A helper method for logging console messages.

The logs parameter is the message to log. The logLevel parameter is optional and can be used to specify the log level.

Implementation

console({
  required String logs,
  TencentCloudChatLogLevel? logLevel,
}) {
  var componentName = runtimeType.toString().replaceAll("TencentCloudChat", "");
  TencentCloudChat.instance.logInstance.console(
    componentName: componentName,
    logs: logs,
    logLevel: logLevel,
  );
}