- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 990 for SetLogger (0.21 sec)
-
src/internal/testlog/log.go
// into exactly what those goroutines do. var logger atomic.Value // SetLogger sets the test logger implementation for the current process. // It must be called only once, at process startup. func SetLogger(impl Interface) { if logger.Load() != nil { panic("testlog: SetLogger must be called only once") } logger.Store(&impl) } // Logger returns the current test logger implementation.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 11 19:08:32 UTC 2017 - 1.9K bytes - Viewed (0) -
src/testing/internal/testdeps/deps.go
// will call StartTestLog/StopTestLog multiple times. // Checking log.set avoids calling testlog.SetLogger multiple times // (which will panic) and also avoids writing the header multiple times. log.set = true testlog.SetLogger(&log) log.w.WriteString("# test log\n") // known to cmd/go/internal/test/test.go } log.mu.Unlock() } func (TestDeps) StopTestLog() error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 6.2K bytes - Viewed (0) -
operator/cmd/mesh/shared.go
// We cannot do this in the `log` package since it would place a runtime dependency on controller-runtime for all binaries. scope := log.RegisterScope("controlleruntime", "scope for controller runtime") controllruntimelog.SetLogger(log.NewLogrAdapter(scope)) } type Printer interface { Printf(format string, a ...any) Println(string) } func NewPrinterForWriter(w io.Writer) Printer { return &writerPrinter{writer: w} }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 29 02:29:02 UTC 2024 - 5.1K bytes - Viewed (0) -
platforms/software/resources-sftp/src/main/java/org/gradle/internal/resource/transport/sftp/SftpClientFactory.java
import java.util.ArrayList; import java.util.List; @ThreadSafe @ServiceScope(Scope.Global.class) public class SftpClientFactory implements Stoppable { private static final Logger LOGGER = LoggerFactory.getLogger(SftpClientFactory.class); private SftpClientCreator sftpClientCreator = new SftpClientCreator(); private final Object lock = new Object(); private final List<LockableSftpClient> allClients = new ArrayList<>();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 7.9K bytes - Viewed (0) -
pkg/monitoring/monitoring.go
) var ( meter = func() api.Meter { return otel.GetMeterProvider().Meter("istio") } monitoringLogger = log.RegisterScope("monitoring", "metrics monitoring") ) func init() { otel.SetLogger(log.NewLogrAdapter(monitoringLogger)) } // RegisterPrometheusExporter sets the global metrics handler to the provided Prometheus registerer and gatherer. // Returned is an HTTP handler that can be used to read metrics from.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 9.5K bytes - Viewed (0) -
pkg/log/config.go
grpclog.SetLoggerV2(zapgrpc.NewLogger(zap.New(grpcLogger, opts...).WithOptions(zap.AddCallerSkip(3)))) } // capture klog (Kubernetes logging) through our logging configureKlog.Do(func() { klog.SetLogger(NewLogrAdapter(KlogScope)) }) // --vklog is non zero then KlogScope should be increased. // klog is a special case. if klogVerbose() { KlogScope.SetOutputLevel(DebugLevel) } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 12.1K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/source/JavaUtilLoggingSystemTest.groovy
when: configurer.setLevel(LogLevel.INFO) configurer.startCapture() Logger.getLogger('test').info('info message') Logger.getLogger('test').severe('error message') Logger.getLogger('test').fine('debug message') then: outputEventListener.toString() == '[[INFO] [test] info message][[ERROR] [test] error message]' } def stopsRoutingWhenRestored() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 3.7K bytes - Viewed (0) -
platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorLoggingIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:36:27 UTC 2023 - 5.9K bytes - Viewed (0) -
maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 11:28:54 UTC 2023 - 12.1K bytes - Viewed (0) -
platforms/core-runtime/logging-api/src/main/java/org/gradle/api/logging/Logging.java
@SuppressWarnings("rawtypes") public static Logger getLogger(Class c) { return (Logger) LoggerFactory.getLogger(c); } /** * Returns the logger with the given name. * * @param name the logger name. * @return the logger. Never returns null. */ public static Logger getLogger(String name) { return (Logger) LoggerFactory.getLogger(name); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 1.7K bytes - Viewed (0)