public final class LogTreePopulator extends Object
ComponentsLogger.getExtraAnnotations(TreeProps)
and transforming them so they can be logged.Modifier and Type | Method and Description |
---|---|
static String |
getAnnotationBundleFromLogger(Component component,
ComponentsLogger logger)
Turn the extracted tree props from a
ComponentsLogger and turn them into a single
colon-separated string that |
static void |
populatePerfEventFromLogger(ComponentContext c,
ComponentsLogger logger,
PerfEvent perfEvent)
Annotate a log event with the log tag set in the context, and extract the treeprops from a
given
ComponentContext and convert them into perf event annotations using a ComponentsLogger implementation. |
public static void populatePerfEventFromLogger(ComponentContext c, ComponentsLogger logger, PerfEvent perfEvent)
ComponentContext
and convert them into perf event annotations using a ComponentsLogger
implementation.@Nullable public static String getAnnotationBundleFromLogger(Component component, ComponentsLogger logger)
ComponentsLogger
and turn them into a single
colon-separated string thatcomponent
- Component to extract tree props from.logger
- populatePerfEventFromLogger(ComponentContext, ComponentsLogger, PerfEvent)