cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
billyl
Level 3

How to put timestamp in a debug text file?

Hi,

I am using Modify Text File action to output process output for each of my Execute Scriopt/Batch file actions in various places throughout the install. It's a way for me to see debug info rather than waiting for the general log file to appear at the end of install. My question is how can I put time information in the file? Is there a current time IA variable I could use for displaying. It's extremely helpful to know the time especially when some actions are decompressing files needed for the next.

Thanks,

Billy
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

I'm not aware of anything built in; perhaps a simple custom code action that sets a variable called $NOW$ to, say, a new java.util.Date().toString(), and place this action before each action that writes $NOW$ to your file?
0 Kudos
billyl
Level 3

Could you put the timestamp variable as a feature request in the next release of IA? The alternative method would put a lot more Action entries in our already crowded project file. Thanks.
0 Kudos