Class StackBasedCallerFinder


  • public final class StackBasedCallerFinder
    extends com.google.common.flogger.backend.Platform.LogCallerFinder
    Default caller finder implementation which should work on all recent Java releases.

    See class documentation in Platform.LogCallerFinder for important implementation restrictions.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String findLoggingClass​(java.lang.Class<? extends com.google.common.flogger.AbstractLogger<?>> loggerClass)  
      com.google.common.flogger.LogSite findLogSite​(java.lang.Class<?> loggerApi, int stackFramesToSkip)  
      static com.google.common.flogger.backend.Platform.LogCallerFinder getInstance()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getInstance

        public static com.google.common.flogger.backend.Platform.LogCallerFinder getInstance()
      • findLoggingClass

        public java.lang.String findLoggingClass​(java.lang.Class<? extends com.google.common.flogger.AbstractLogger<?>> loggerClass)
        Specified by:
        findLoggingClass in class com.google.common.flogger.backend.Platform.LogCallerFinder
      • findLogSite

        public com.google.common.flogger.LogSite findLogSite​(java.lang.Class<?> loggerApi,
                                                             int stackFramesToSkip)
        Specified by:
        findLogSite in class com.google.common.flogger.backend.Platform.LogCallerFinder
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object