- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 613 for SetLogger (0.16 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) -
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) -
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) -
okcurl/src/main/kotlin/okhttp3/curl/logging/LoggingUtil.kt
val activeLogger = getLogger("") activeLogger.addHandler(handler) activeLogger.level = Level.ALL getLogger("jdk.event.security").level = Level.INFO getLogger("org.conscrypt").level = Level.INFO } else { if (showHttp2Frames) { val activeLogger = getLogger(Http2::class.java.name) activeLogger.level = Level.FINE
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Fri Apr 05 03:30:42 UTC 2024 - 2.7K bytes - Viewed (0) -
maven-slf4j-provider/src/test/java/org/apache/maven/slf4j/MavenLoggerFactoryTest.java
Logger logger = mavenLoggerFactory.getLogger("Test"); assertThat(logger, instanceOf(MavenSimpleLogger.class)); } @Test void loggerCachingWorks() { MavenLoggerFactory mavenLoggerFactory = new MavenLoggerFactory(); Logger logger = mavenLoggerFactory.getLogger("Test"); Logger logger2 = mavenLoggerFactory.getLogger("Test");
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jan 09 06:36:58 UTC 2024 - 3.4K bytes - Viewed (0)