/** * Get the name of the method that (allegedly) issued the logging request. * * <p>Note that this sourceMethodName is not verified and may be spoofed. This information may * either have been provided as part of the logging call, or it may have been inferred * automatically by the logging framework. In the latter case, the information may only be * approximate and may in fact describe an earlier call on the stack frame. * * <p>May be null if no information could be obtained. * * @return the source method name */ public String getSourceMethodName() { if (needToInferCaller) { inferCaller(); } return sourceMethodName; }