src/api/AsteriskAPI.js
/**
   * POST /asterisk/logging/{logChannelName}
   *
   * Add a log channel.
   *
   * *API available since Asterisk 13.6*
   *
   * @param {object} params
   * @param {string} params.logChannelName The log channel to add.
   * @param {string} params.configuration The levels of the log channel.
   * @returns {Promise} Resolves if the log channel was successfully added.
   *  Rejects if the configuration data is malformed (status 400) or if the
   *  log channel could not be added for some reason {status 409)
   */
POST /asterisk/logging/{logChannelName}
Add a log channel.

*API available since Asterisk 13.6

@param {object} params
@param {string} params.logChannelName The log channel to add.
@param {string} params.configuration The levels of the log channel.
@returns {Promise} Resolves if the log channel was successfully added.
Rejects if the configuration data is malformed (status 400) or if the
log channel could not be added for some reason {status 409)
POST / asterisk / logging / { logChannelName } Add a log channel . * API available since Asterisk 13 . 6 @param { object } params @param { string } params . logChannelName The log channel to add . @param { string } params . configuration The levels of the log channel . @returns { Promise } Resolves if the log channel was successfully added . Rejects if the configuration data is malformed ( status 400 ) or if the log channel could not be added for some reason { status 409 )
addLog(params = {}) {
    const { logChannelName, configuration } = params;
    const name = encodeURIComponent(logChannelName);
    return this._request({
      method: "POST",
      url: `${this._baseUrl}/asterisk/logging/${name}`,
      params: { configuration },
    });
  }
addLog ( params = { } ) { const { logChannelName , configuration } = params ; const name = encodeURIComponent ( logChannelName ) ; return this . _request ( { method : "POST" , url : ` ${ this . _baseUrl } ${ name } ` , params : { configuration } , } ) ; }
POST /asterisk/logging/{logChannelName}
 Add a log channel.
POST / asterisk / logging / { logChannelName } Add a log channel .