0

AWS Chime 需要将记录器对象传递到构造函数或 chime sdk 中断。

import {
    ConsoleLogger,
    DefaultDeviceController,
    DefaultMeetingSession,
    LogLevel,
    MeetingSessionConfiguration
} from 'amazon-chime-sdk-js'


const logger = new ConsoleLogger('Chime Logs', LogLevel.INFO);


const meetingConfig = new MeetingSessionConfiguration(ticket.JoinInfo.Meeting, ticket.JoinInfo.Attendee);
    meetingSession = new DefaultMeetingSession(
        meetingConfig,
        logger,
        deviceController
    )


有没有办法关闭记录器?

4

1 回答 1

2

是的...LogLevel.OFF在创建 ConsoleLogger 对象时通过。

const logger = new ConsoleLogger('Chime Logs', LogLevel.OFF);
于 2020-09-14T18:04:47.847 回答