new-integration-tests/src/test/java/oracle/weblogic/kubernetes/logging/LoggingFacade.java
CallerDetails inferCaller() {
    CallerDetails details = new CallerDetails();
    Throwable t = new Throwable();
    StackTraceElement[] stack = t.getStackTrace();

    // Walk the stack until we hit a frame outside this class
    int i = 0;
    while (i < stack.length) {
      StackTraceElement frame = stack[i];
      String cname = frame.getClassName();
      if (!cname.equals(CLASS)) {
        details.clazz = cname;
        details.method = frame.getMethodName();
        break;
      }
      i++;
    }

    return details;
  }
/**
   * Obtains caller details, class name and method, to be provided to the actual Logger.
   */
Obtains caller details, class name and method, to be provided to the actual Logger.
Obtains caller details class name and method to be provided to the actual Logger .
CallerDetails inferCaller() {
    CallerDetails details = new CallerDetails();
    Throwable t = new Throwable();
    StackTraceElement[] stack = t.getStackTrace();
    int i = 0;
    while (i < stack.length) {
      StackTraceElement frame = stack[i];
      String cname = frame.getClassName();
      if (!cname.equals(CLASS)) {
        details.clazz = cname;
        details.method = frame.getMethodName();
        break;
      }
      i++;
    }
    return details;
  }
CallerDetails inferCaller ( ) { CallerDetails details = new CallerDetails ( ) ; Throwable t = new Throwable ( ) ; StackTraceElement [ ] stack = t . getStackTrace ( ) ; int i = 0 ; while ( i < stack . length ) { StackTraceElement frame = stack [ i ] ; String cname = frame . getClassName ( ) ; if ( ! cname . equals ( CLASS ) ) { details . clazz = cname ; details . method = frame . getMethodName ( ) ; break ; } i ++ ; } return details ; }
Obtains caller details, class name and method, to be provided to the actual Logger.
Obtains caller details class name and method to be provided to the actual Logger .
// Walk the stack until we hit a frame outside this class