This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: How to put timestamp in a debug text file?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 26, 2008
02:43 PM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 27, 2008
11:19 AM
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?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 27, 2008
11:30 AM
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.