- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,926 for loggers (0.1 sec)
-
platforms/documentation/docs/src/snippets/tutorial/logging/groovy/build.gradle
// tag::use-logger[] logger.quiet('An info log message which is always logged.') logger.error('An error log message.') logger.warn('A warning log message.') logger.lifecycle('A lifecycle info log message.') logger.info('An info log message.') logger.debug('A debug log message.') logger.trace('A trace log message.') // Gradle never logs TRACE level logs // end::use-logger[] // tag::use-logger-placeholder[] logger.info('A {} log message', 'info')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.1K bytes - Viewed (0) -
pkg/kubelet/cm/dra/plugin/noderesources.go
// This is a problem, report it and retry. logger.Error(err, "Reading node resources from gRPC stream failed") select { case <-time.After(backOff.Get(backOffID)): backOff.Next(backOffID, time.Now()) case <-ctx.Done(): } } break } if loggerV := logger.V(6); loggerV.Enabled() { loggerV.Info("Driver resources updated", "resources", response.Resources)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 20:12:53 UTC 2024 - 16.6K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go
// line where the status originated. func statusUnschedulable(logger klog.Logger, reason string, kv ...interface{}) *framework.Status { if loggerV := logger.V(5); loggerV.Enabled() { helper, loggerV := loggerV.WithCallStackHelper() helper() kv = append(kv, "reason", reason) // nolint: logcheck // warns because it cannot check key/values loggerV.Info("pod unschedulable", kv...) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 15:22:37 UTC 2024 - 75.9K bytes - Viewed (0) -
src/log/slog/doc.go
with all log events arising from the request. Rather than repeat the attribute with every log call, you can use [Logger.With] to construct a new Logger containing the attributes: logger2 := logger.With("url", r.URL) The arguments to With are the same key-value pairs used in [Logger.Info]. The result is a new Logger with the same handler as the original, but additional attributes that will appear in the output of every call. # Levels
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 15 14:35:48 UTC 2024 - 12.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/noderesources/resource_allocation.go
alloc, req := r.calculateResourceAllocatableRequest(logger, nodeInfo, v1.ResourceName(r.resources[i].Name), podRequests[i]) // Only fill the extended resource entry when it's non-zero. if alloc == 0 { continue } allocatable[i] = alloc requested[i] = req } score := r.scorer(requested, allocatable) if loggerV := logger.V(10); loggerV.Enabled() { // Serializing these maps is costly.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 20 14:53:43 UTC 2023 - 5.3K bytes - Viewed (0) -
platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractBasicGroupedTaskLoggingFunctionalTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 8.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/TestLogHandler.java
* * <pre> * TestLogHandler handler; * * protected void setUp() throws Exception { * super.setUp(); * handler = new TestLogHandler(); * SomeClass.logger.addHandler(handler); * addTearDown(new TearDown() { * public void tearDown() throws Exception { * SomeClass.logger.removeHandler(handler); * }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 26 20:07:17 UTC 2023 - 2.6K bytes - Viewed (0) -
src/log/slog/example_level_handler_test.go
// // This example demonstrates increasing the log level to reduce a logger's // output. // // Another typical use would be to decrease the log level (to LevelDebug, say) // during a part of the program that was suspected of containing a bug. func ExampleHandler_levelHandler() { th := slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{ReplaceAttr: slogtest.RemoveTime}) logger := slog.New(NewLevelHandler(slog.LevelWarn, th))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 04 18:32:54 UTC 2023 - 2.2K bytes - Viewed (0) -
analysis/analysis-api-standalone/analysis-api-fir-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/project/structure/LLFirStandaloneLibrarySymbolProviderFactory.kt
import java.nio.file.Path import kotlin.io.path.absolutePathString import kotlin.io.path.extension import kotlin.io.path.isDirectory import org.jetbrains.kotlin.util.Logger as KLogger class LLFirStandaloneLibrarySymbolProviderFactory(private val project: Project) : LLFirLibrarySymbolProviderFactory() { override fun createJvmLibrarySymbolProvider( session: FirSession,
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Mon Apr 15 11:10:29 UTC 2024 - 6.9K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/operations/logging/DefaultBuildOperationLoggerFactoryTest.groovy
import org.gradle.api.logging.Logger import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider import org.junit.Rule import spock.lang.Specification class DefaultBuildOperationLoggerFactoryTest extends Specification { @Rule final TestNameTestDirectoryProvider tmpDirProvider = new TestNameTestDirectoryProvider(getClass()) Logger logger = Mock()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 04 22:26:51 UTC 2021 - 1.8K bytes - Viewed (0)