feat(loggin) forward logs to external api

This commit is contained in:
Tudor-Ovidiu Avram
2020-07-28 10:39:54 +03:00
committed by Saúl Ibarra Corretgé
parent d5dae945a8
commit e2731ce73e
6 changed files with 59 additions and 0 deletions

View File

@@ -696,6 +696,21 @@ class API {
});
}
/**
* Notify external application (if API is enabled) that the an error has been logged.
*
* @param {string} logLevel - The message log level.
* @param {Array} args - Array of strings composing the log message.
* @returns {void}
*/
notifyLog(logLevel: string, args: Array<string>) {
this._sendEvent({
name: 'log',
logLevel,
args
});
}
/**
* Notify external application (if API is enabled) that the conference has
* been joined.