@sap_oss/wdio-qmate-service
Version:
[](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[](http
57 lines (56 loc) • 2.19 kB
TypeScript
/**
* @class console
* @memberof util
*/
export declare class Console {
private colorReset;
/**
* @function log
* @memberOf util.console
* @description Logs a message to the console in the given color.
* @param {String} message - The message to log.
* @param {String} [textColor] - The color of the text: "black, white", "red", "yellow", "green", "blue", "cyan", "magenta".
* @param {String} [backgroundColor] - The color of the background: "black, white", "red", "yellow", "green", "blue", "cyan", "magenta".
* @param {String} [brightness] - Adjusts the brightness of the color: "bright", "dim". Leave empty for default.
* @example util.console.log("The document has been saved.", "green");
*/
log(message: string, textColor?: string, backgroundColor?: string, brightness?: string): void;
/**
* @function error
* @memberOf util.console
* @description Logs a error message to the console in red.
* @param {String} message - The message to log.
* @example util.console.error("Error: Please investigate.");
*/
error(message: string): void;
/**
* @function warn
* @memberOf util.console
* @description Logs a warning message to the console in yellow.
* @param {String} message - The message to log.
* @example util.console.warn("Optional step not executed.");
*/
warn(message: string): void;
/**
* @function success
* @memberOf util.console
* @description Logs a success message to the console in green.
* @param {String} message - The message to log.
* @example util.console.success("The document has been saved.");
*/
success(message: string): void;
/**
* @function info
* @memberOf util.console
* @description Logs a info message to the console in cyan.
* @param {String} message - The message to log.
* @example util.console.success("The document has been saved.");
*/
info(message: string): void;
private colors;
private getColorValue;
private getBackgroundColorValue;
private getBrightnessValue;
}
declare const _default: Console;
export default _default;