Forum Discussion
cunderw
Community Hero
Ha, that's from my webinar!
What you're looking for is the CreateFolder, PopFolder and PushFolder methods of the log object:
I actually created wrapper functions for this that provides a default styling and a single place to update / expand based on needs.
function indentLog(sDescription) { let oAttr = Log.CreateNewAttributes(); oAttr.Bold = true; let step = Log.CreateFolder(sDescription, "", pmNormal, oAttr); Log.PushLogFolder(step); } function outdentLog(sExpected) { sExpected = sExpected ? sExpected : "Finished"; Log.Message(sExpected); Log.PopLogFolder(); }
Related Content
- 12 years ago
- 2 months ago