findLogSite

public abstract FloggerLogSite findLogSite(Class<? extends Object> loggerApi, int stackFramesToSkip)

Returns a LogSite found from the current stack trace for the caller of the log() method on the given logging class.

Return

A log site inferred from the stack, or INVALID if no log site can be determined.

Parameters

loggerApi

the class containing the log() methods whose caller we need to find.

stackFramesToSkip

the number of method calls which exist on the stack between the log() method and the point at which this method is invoked.