mirror of
https://github.com/Xahau/xahaud.git
synced 2026-04-20 02:32:23 +00:00
- Log.h: add setTransform/applyTransform on Logs for message rewriting
- SuiteJournal.h: wire transform into SuiteJournalSink so test output
goes through it (previously bypassed Logs::write entirely)
- Env.h: pass Logs* to SuiteJournalSink
- TestEnv.h: add setPrefix() for per-phase log labels, prepend prefix
in transform
usage:
auto env = makeEnv(features);
auto const& alice = env.account("alice");
env.setPrefix("deposit phase");
// logs: TRC:HooksTrace [deposit phase] HookTrace[Account(alice)-...]: ...
TESTENV_LOGGING="HooksTrace=trace,View=debug"