Reliable printf alternative for test debugging

NEW
Unassigned

Status

6 years ago
5 years ago

People

(Reporter: BenWa, Unassigned)

Tracking

(Depends on: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
Getting test output on mobile is very difficult because of logcat. We need some platform neutral logging API developers can use that will:
1) Show up to stdout.
2) Show up in the TBPL log.
3) Show in order logging, ideally between multiple threads
4) Must never lose logging (i.e. not pull adb logcat every 10 seconds) unless the log exceed some multi MB threshold.
5) Work for non debug builds.
6) Optional: Have a c++ string stream (testout << "Length: " << x << endl) implementation.
(Reporter)

Comment 1

6 years ago
Opps wrong CC
(Reporter)

Comment 2

6 years ago
Depends on bug 881389 because we shouldn't duplicate anything that is going to be done there.
Depends on: 881389
BenWa, what is the delta between the two bugs? Once bug 881389 is done, which particular items above are not covered, or incomplete?
Flags: needinfo?(bgirard)
(Reporter)

Comment 4

6 years ago
(In reply to Milan Sreckovic [:milan] from comment #3)
> BenWa, what is the delta between the two bugs? Once bug 881389 is done,
> which particular items above are not covered, or incomplete?

We're still missing have a way to output the logging in mobile. Once bug 881389 lands that output will still go to 'adb logcat' which is not in the test log.

For this bug to be resolved we need to either include ALL logcat in the test log or find a way to forward this new logging to test output stream.
Flags: needinfo?(bgirard)
You need to log in before you can comment on or make changes to this bug.