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
publicLogArrayOfProperties(arrProperties:Properties[]):void{
arrProperties.forEach((objProperties:Properties)=>{
letarrKey:string[]=objProperties.keys;
arrKey.forEach((strKey:string)=>{
letstrValue: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.
