Adds withPackageName to StatsLogger creation

This lets you specify a package name which will be logged by the
returned StatsLogger (rather than retrieving from the ItemInfo).

Bug: 292227499
Test: Manual with other change in topic
Change-Id: I3650f9f02f6cbe560e1c21262ba1cb893702a49e
This commit is contained in:
Andy Wickham committed 2023-11-21 15:41:50 -08:00
1 parent 426f7f4d2f
commit 2aee5ff67a
2 files changed
+20 -1

No files matched your search

@@ -838,6 +838,13 @@ public class StatsLogManager implements ResourceBasedOverride {
return this;
}
/**
* Set the package name of the log message.
*/
default StatsLogger withPackageName(@Nullable String packageName) {
return this;
}
/**
* Builds the final message and logs it as {@link EventEnum}.
*/