Project

General

Profile

Actions

Support Request #12464

closed

Option to call ADTF Launcher and dump log output in file

Added by hidden over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Customer:
BOSCH
Department:
CC-DA/ETV
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
Solved Issue
Product Issue Numbers:
Affected Products:
Platform:
Windows 10 64bit
Topic:
ADTF::Logging
FAQ Links:

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
Actions #1

Updated by hidden over 3 years ago

  • Status changed from New to Customer Feedback Required
  • Topic set to ADTF::Logging

Hi Gulappa,

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
Actions #2

Updated by hidden over 3 years ago

Thank you for the response. You can close the ticket.

Actions #3

Updated by hidden over 3 years ago

  • Project changed from 5 to Public Support
  • Subject changed from [Support]: How to dump console logs to a file programmatically to Option to call ADTF Launcher and dump log output in file
  • Description updated (diff)
  • Status changed from Customer Feedback Required to To Be Closed
  • Private changed from Yes to No
  • Resolution set to Solved Issue
Actions #4

Updated by hidden over 2 years ago

  • Status changed from To Be Closed to Closed
Actions

Also available in: Atom PDF