org.apache.logging.log4j.util

Class StackLocatorUtil



  • public final class StackLocatorUtil
    extends Object
    Consider this class private. Provides various methods to determine the caller class.

    Background

    • Method Detail

      • getCallerClass

        public static Class<?> getCallerClass(int depth)
      • getStackTraceElement

        public static StackTraceElement getStackTraceElement(int depth)
      • getCallerClass

        public static Class<?> getCallerClass(String fqcn)
      • getCallerClass

        public static Class<?> getCallerClass(Class<?> anchor)
      • getCurrentStackTrace

        public static Stack<Class<?>> getCurrentStackTrace()

Copyright © 1999-2018 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.