Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,926 for loggers (0.13 sec)

  1. src/testing/slogtest/slogtest.go

    //
    // TestHandler installs the given Handler in a [slog.Logger] and
    // makes several calls to the Logger's output methods.
    // The Handler should be enabled for levels Info and above.
    //
    // The results function is invoked after all such calls.
    // It should return a slice of map[string]any, one for each call to a Logger output method.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. src/log/slog/logger_test.go

    	defer SetDefault(Default()) // restore
    	logger := New(h)
    	SetDefault(logger)
    
    	// Calls to check must be one line apart.
    	// Determine line where calls start.
    	f, _ := runtime.CallersFrames([]uintptr{callerPC(2)}).Next()
    	startLine = f.Line + 4
    	// Do not change the number of lines between here and the call to check(0).
    
    	logger.Log(ctx, LevelInfo, "")
    	check(0)
    	logger.LogAttrs(ctx, LevelInfo, "")
    	check(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/ProgressBar.java

    import org.gradle.internal.nativeintegration.console.ConsoleMetaData;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import java.util.List;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.Future;
    
    public class ProgressBar {
        private static final Logger LOGGER = LoggerFactory.getLogger(ProgressBar.class);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/preemption/preemption.go

    	if loggerV := logger.V(5); logger.Enabled() {
    		var sample []string
    		for i := offset; i < offset+10 && i < int32(len(potentialNodes)); i++ {
    			sample = append(sample, potentialNodes[i].Node().Name)
    		}
    		loggerV.Info("Selected candidates from a pool of nodes", "potentialNodesCount", len(potentialNodes), "offset", offset, "sampleLength", len(sample), "sample", sample, "candidates", numCandidates)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  5. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    			logger.V(3).Info("ReadyCondition for Node transitioned from savedCondition to currentReadyCondition", "node", klog.KObj(node), "savedCondition", savedCondition, "currentReadyCondition", currentReadyCondition)
    			transitionTime = nc.now()
    		} else {
    			transitionTime = nodeHealth.readyTransitionTimestamp
    		}
    		if loggerV := logger.V(5); loggerV.Enabled() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  6. src/log/syslog/syslog.go

    	return n.conn.Close()
    }
    
    // NewLogger creates a [log.Logger] whose output is written to the
    // system log service with the specified priority, a combination of
    // the syslog facility and severity. The logFlag argument is the flag
    // set passed through to [log.New] to create the Logger.
    func NewLogger(p Priority, logFlag int) (*log.Logger, error) {
    	s, err := New(p, "")
    	if err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

          currentThread = Thread.currentThread()
          logger.addHandler(loggerHandler)
        }
    
        override fun secureConnectEnd(
          call: Call,
          handshake: Handshake?,
        ) {
          logger.removeHandler(loggerHandler)
        }
    
        override fun callEnd(call: Call) {
          // Cleanup log handler if failed.
          logger.removeHandler(loggerHandler)
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/cache/LoadingCache.java

       * If the new value is loaded successfully it will replace the previous value in the cache; if an
       * exception is thrown while refreshing the previous value will remain, <i>and the exception will
       * be logged (using {@link java.util.logging.Logger}) and swallowed</i>.
       *
       * <p>Caches loaded by a {@link CacheLoader} will call {@link CacheLoader#reload} if the cache
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Aug 06 17:12:03 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/internal/Finalizer.java

     * stop itself.
     */
    // no @ElementTypesAreNonNullByDefault for the reasons discussed above
    public class Finalizer implements Runnable {
    
      private static final Logger logger = Logger.getLogger(Finalizer.class.getName());
    
      /** Name of FinalizableReference.class. */
      private static final String FINALIZABLE_REFERENCE = "com.google.common.base.FinalizableReference";
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Aug 23 12:54:09 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/logging.adoc

    include::sample[dir="snippets/tutorial/logging/groovy",files="build.gradle[tags=use-println]"]
    ====
    
    Gradle also provides a `logger` property to a build script, which is an instance of link:{javadocPath}/org/gradle/api/logging/Logger.html[Logger].
    This interface extends the SLF4J `Logger` interface and adds a few Gradle-specific methods.
    Below is an example of how this is used in the build script:
    
    ====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 18:32:47 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top