public abstract class BaseComponentsLogger extends Object implements ComponentsLogger
ComponentsLogger
which handles pooling event objects.Constructor and Description |
---|
BaseComponentsLogger() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getKeyCollisionStackTraceBlacklist()
When a component key collision occurs, filenames that match the names contained in the returned
set will be added to the error stack trace even if they match keywords in the whitelist.
|
Set<String> |
getKeyCollisionStackTraceKeywords()
When a component key collision occurs, filenames that contain keywords contained in the
returned set will be added to the error stack trace.
|
void |
log(LogEvent event)
Log an event.
|
LogEvent |
newEvent(int eventId)
Create a new event with the given event id.
|
LogEvent |
newPerformanceEvent(int eventId)
Create a new performance event with the given event id and start counting the time.
|
abstract void |
onEvent(LogEvent event)
Log a non-performance event.
|
abstract void |
onPerformanceEventEnded(LogEvent event)
Log the end of a performance event.
|
abstract void |
onPerformanceEventStarted(LogEvent event)
Log the start of a performance event.
|
public LogEvent newEvent(int eventId)
ComponentsLogger
newEvent
in interface ComponentsLogger
public LogEvent newPerformanceEvent(int eventId)
ComponentsLogger
newPerformanceEvent
in interface ComponentsLogger
public void log(LogEvent event)
ComponentsLogger
log
in interface ComponentsLogger
public Set<String> getKeyCollisionStackTraceKeywords()
ComponentsLogger
getKeyCollisionStackTraceKeywords
in interface ComponentsLogger
public Set<String> getKeyCollisionStackTraceBlacklist()
ComponentsLogger
getKeyCollisionStackTraceBlacklist
in interface ComponentsLogger
ComponentsLogger.getKeyCollisionStackTraceKeywords()
public abstract void onPerformanceEventStarted(LogEvent event)
public abstract void onPerformanceEventEnded(LogEvent event)
public abstract void onEvent(LogEvent event)