Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jitsi-meet/react/features/base/logging/ExternalApiLogTransport.ts

18 lines
463 B

/**
* Constructs a log transport object for use with external API.
*
* @param {Array} levels - The log levels forwarded to the external API.
* @returns {Object} - The transport object.
*/
function buildTransport(levels: Array<string>) {
return levels.reduce((logger: any, level) => {
logger[level] = (...args: any) => {
APP.API.notifyLog(level, args);
};
return logger;
}, {});
}
export default buildTransport;