New ConsoleLogger group method

Groups subsequent console.log output, for cleaner console output
This commit is contained in:
Philipp Stracker 2024-08-16 18:15:59 +02:00
parent 00e2959700
commit 63e9c8bf27
No known key found for this signature in database
3 changed files with 49 additions and 7 deletions

View file

@ -599,6 +599,15 @@ export default class PaymentButton {
this.#logger.error( ...args );
}
/**
* Open or close a log-group
*
* @param {?string} [label=null] Group label.
*/
logGroup( label = null ) {
this.#logger.group( label );
}
/**
* Determines if the current button instance has valid and complete configuration details.
* Used during initialization to decide if the button can be initialized or should be skipped.