prepack icon indicating copy to clipboard operation
prepack copied to clipboard

Produce log file with additional (internal) diagnostics

Open NTillmann opened this issue 5 years ago • 0 comments

The diagnostics message in #2566 was really not meant for an end-user, but for Prepack developers only. Similarly, to diagnose issues like in #2564, some extra internal information, here the IR dump, is crucial.

Prepack should have a general mechanism to produce a central log file, maybe via --log, plus the ability to configure the verbosity of logging, maybe via --logVerbosity.

The log file would receive the usual stream of diagnostics message, but also additional, typically rather internal diagnostics messages, including an IR dump at an extreme verbosity setting.

Generally, this should consolidate/replace the current random console.log(...) logging in various places for various reasons under various conditions.

We should carefully design the infrastructure to feed into this log.

NTillmann avatar Sep 22 '18 01:09 NTillmann