protected StackTraceElement getCallerData ( final ILoggingEvent loggingEvent ) { final StackTraceElement [ ] callerData = loggingEvent . getCallerData ( ) ; if ( callerData != null ) { for ( int i = 0 ; i < callerData . length ; ++ i ) { final String callerClassName = callerData [ i ] . getClassName ( ) ; if ( ! callerClassName . startsWith ( STENO_CLASS_NAME_PREFIX ) ) { return callerData [ i ] ; } } } return null ; }
Retrieve the relevant caller data adjusted for Steno logger wrapping .