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
2023-11-21 15:05:26 -08:00
parent 426f7f4d2f
commit 2aee5ff67a
2 changed files with 20 additions and 1 deletions
@@ -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}.
*/