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:
@@ -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}.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user