Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Produce log file with additional (internal) diagnostics #2567

Open
NTillmann opened this issue Sep 22, 2018 · 0 comments
Open

Produce log file with additional (internal) diagnostics #2567

NTillmann opened this issue Sep 22, 2018 · 0 comments

Comments

@NTillmann
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant