graphdb
Version:
Javascript client library supporting GraphDB and RDF4J REST API.
22 lines (21 loc) • 701 B
TypeScript
export = LoggingUtils;
/**
* Utilities related to logging.
*
* @author Mihail Radkov
*/
declare class LoggingUtils {
/**
* Creates an object from the provided HTTP response that is suitable for
* structured logging.
*
* Any additional key-value entries from <code>params</code> will be assigned
* in the created payload object.
*
* @param {HttpResponse} response the HTTP response.
* Used to get the execution time and the base URL
* @param {object} [params] additional parameters to be appended
* @return {object} the constructed payload object for logging
*/
static getLogPayload(response: HttpResponse, params?: object): object;
}