Function: Log an Array of Properties

by Simon Sparks · 18 September 2021

To use this function add it to the class library file named Utilities.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: Utilities.ts

Description: Orchestrator Function to Log the Properties Object Values

Function LogArrayOfProperties

public LogArrayOfProperties(arrProperties:Properties[]): void {

  arrProperties.forEach((objProperties:Properties) => {
  
    let arrKey:string[] = objProperties.keys;
  
    arrKey.forEach((strKey:string) => {
    
  		let strValue:string = objProperties.get(strKey);
  		
  		this.objLogger.info("Key: " + strKey);
  		this.objLogger.info("Value: " + strValue);
    });
  });
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like