public interface ComponentsLogger
ComponentContext
. See FrameworkLogEvents
for a list of events and parameters logged internally by Litho.Modifier and Type | Interface and Description |
---|---|
static class |
ComponentsLogger.LogLevel |
Modifier and Type | Method and Description |
---|---|
void |
cancelPerfEvent(PerfEvent event)
Release a previously obtained
PerfEvent without logging it. |
java.util.Map<java.lang.String,java.lang.String> |
getExtraAnnotations(TreeProps treeProps)
Provide additional log metadata based on the tree props of the component hierarchy currently
being logged.
|
boolean |
isTracing(PerfEvent logEvent) |
void |
logPerfEvent(PerfEvent event)
Write a
PerfEvent to storage. |
PerfEvent |
newPerformanceEvent(ComponentContext c,
int eventId)
Create a new performance event with the given event id and start counting the time.
|
PerfEvent newPerformanceEvent(ComponentContext c, int eventId)
void logPerfEvent(PerfEvent event)
PerfEvent
to storage. This also marks the end of the event.void cancelPerfEvent(PerfEvent event)
PerfEvent
without logging it.java.util.Map<java.lang.String,java.lang.String> getExtraAnnotations(TreeProps treeProps)
treeProps
- The treeprops available in the hierarchy.boolean isTracing(PerfEvent logEvent)