Class GoogleLogger


  • public final class GoogleLogger
    extends com.google.common.flogger.AbstractLogger<GoogleLogger.Api>
    The default Google specific implementation of AbstractLogger which extends the core LoggingApi to add Google specific functionality.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      GoogleLogger.Api at​(java.util.logging.Level level)  
      static GoogleLogger forEnclosingClass()
      Returns a new Google specific logger instance using printf style message formatting.
      static GoogleLogger forInjectedClassName​(java.lang.String className)
      Deprecated.
      prefer forEnclosingClass(); this method exists only to support compile-time log site injection.
      • Methods inherited from class com.google.common.flogger.AbstractLogger

        atConfig, atFine, atFiner, atFinest, atInfo, atSevere, atWarning, getName, isLoggable
      • Methods inherited from class java.lang.Object

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

      • forEnclosingClass

        public static GoogleLogger forEnclosingClass()
        Returns a new Google specific logger instance using printf style message formatting.
      • forInjectedClassName

        @Deprecated
        public static GoogleLogger forInjectedClassName​(java.lang.String className)
        Deprecated.
        prefer forEnclosingClass(); this method exists only to support compile-time log site injection.
        Returns a new Google specific logger instance for the given class, using printf style message formatting.