injectedLogSite

public static FloggerLogSite injectedLogSite(String internalClassName, String methodName, int encodedLineNumber, @Nullable() @Nullable() String sourceFileName)

Deprecated

Creates a log site injected from constants held a class' constant pool.

Used for compile-time log site injection, and by the agent.

Deprecated

this method is only be used for log-site injection and should not be called directly.

Parameters

internalClassName

Slash separated class name obtained from the class constant pool.

methodName

Method name obtained from the class constant pool.

encodedLineNumber

line number and per-line log statement index encoded as a single 32-bit value. The low 16-bits is the line number (0 to 0xFFFF inclusive) and the high 16 bits is a log statement index to distinguish multiple statements on the same line (this becomes important if line numbers are stripped from the class file and everything appears to be on the same line).

sourceFileName

Optional base name of the source file (this value is strictly for debugging and does not contribute to either equals() or hashCode() behavior).