Support Request #12464
closedOption to call ADTF Launcher and dump log output in file
Description
Supportanfrage
We are in process of collecting logs generated by filters & services. This is required as part of automation whenever failure occurs during measurement especially in test-drive.
We would like to dump all ADTF console logs to a file (inspite of providing file-name in global settings) either via command line arguments while launching ADTF or by communicating with ADTF logger service.
Question is: Do we have an option to communicate with ADTF logger service with external windows executable?
Or is there an option to provide in command line arguments to dump console logs to a file?
Lösung
You can start the adtf_launcher with argument -logfile="/path/to/logfile.txt"
.
This will automati cset -stdout and pipes all output to the given file.
stderr will be logged within /path/to/logfile_stderr.txt
besides your /path/to/logfile.txt
.
To pipe the whole output in one file use:
adtf_launcher -stdout > /path/to/logfile.txt 2>&1
See
adtf_launcher -help