- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for GetOutputLevel (0.21 sec)
-
pkg/log/scope.go
func (s *Scope) WarnEnabled() bool { return s.GetOutputLevel() >= WarnLevel } // Info outputs a message at info level. func (s *Scope) Info(msg any) { if s.GetOutputLevel() >= InfoLevel { s.emit(zapcore.InfoLevel, fmt.Sprint(msg)) } } // Infof uses fmt.Sprintf to construct and log a message at info level. func (s *Scope) Infof(format string, args ...any) { if s.GetOutputLevel() >= InfoLevel {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 16:47:01 UTC 2024 - 10.7K bytes - Viewed (0) -
cni/pkg/cmd/root.go
log.Infof("CNI install configuration: \n%+v", cfg.InstallConfig) log.Infof("CNI race repair configuration: \n%+v", cfg.RepairConfig) // Start metrics server monitoring.SetupMonitoring(cfg.InstallConfig.MonitoringPort, "/metrics", ctx.Done()) // Start UDS log server udsLogger := udsLog.NewUDSLogger(log.GetOutputLevel())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 16:26:35 UTC 2024 - 13K bytes - Viewed (0) -
platforms/jvm/language-java/src/test/groovy/org/gradle/external/javadoc/StandardJavadocDocletOptionsTest.java
assertEquals(options, options.quiet()); assertEquals(JavadocOutputLevel.QUIET, options.getOutputLevel()); } @Test public void testVerboseOutputLevel() { assertEquals(options, options.verbose()); assertEquals(JavadocOutputLevel.VERBOSE, options.getOutputLevel()); assertTrue(options.isVerbose()); } @Test public void testFluentBreakIterator() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 15.5K bytes - Viewed (0) -
pkg/config/analysis/analyzers/analyzers_bench_test.go
func benchmarkAnalyzersArtificialBlankData(count int, b *testing.B) { // Suppress log noise from validation warnings validationScope := log.Scopes()["validation"] oldLevel := validationScope.GetOutputLevel() validationScope.SetOutputLevel(log.ErrorLevel) defer validationScope.SetOutputLevel(oldLevel) // Generate blank test data store := memory.MakeSkipValidation(collections.All)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 08:32:06 UTC 2024 - 3.3K bytes - Viewed (0) -
pkg/log/scope_test.go
} if c.fatalEnabled != s.FatalEnabled() { t.Errorf("Got %v, expected %v", s.FatalEnabled(), c.fatalEnabled) } if c.level != s.GetOutputLevel() { t.Errorf("Got %v, expected %v", s.GetOutputLevel(), c.level) } }) } } func TestMultipleScopesWithSameName(t *testing.T) { z1 := RegisterScope("zzzz", "z") z2 := RegisterScope("zzzz", "z")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 17:36:09 UTC 2024 - 11K bytes - Viewed (0) -
pkg/log/config_test.go
o := DefaultOptions() o.outputLevels = "default:debug,all:info" if err := Configure(o); err != nil { t.Errorf("Expecting success, got %v", err) } else if s.GetOutputLevel() != InfoLevel { t.Errorf("Expecting InfoLevel, got %v", s.GetOutputLevel()) } o = DefaultOptions() o.stackTraceLevels = "default:debug,all:info" if err := Configure(o); err != nil { t.Errorf("Expecting success, got %v", err)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 10.9K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/external/javadoc/MinimalJavadocOptions.java
List<File> getExtDirs(); void setExtDirs(@Nullable List<File> extDirs); MinimalJavadocOptions extDirs(File... extDirs); @Console JavadocOutputLevel getOutputLevel(); void setOutputLevel(JavadocOutputLevel outputLevel); MinimalJavadocOptions verbose(); @Internal boolean isVerbose(); MinimalJavadocOptions quiet(); @Input
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 5.1K bytes - Viewed (0) -
pkg/ctrlz/topics/scopes.go
return "scope" } func getScopeInfo(s *log.Scope) *scopeInfo { return &scopeInfo{ Name: s.Name(), Description: s.Description(), OutputLevel: levelToString[s.GetOutputLevel()], StackTraceLevel: levelToString[s.GetStackTraceLevel()], LogCallers: s.GetLogCallers(), } } func (scopeTopic) Activate(context fw.TopicContext) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 4K bytes - Viewed (0) -
tests/fuzz/analyzer_fuzzer.go
} return files, nil } // runAnalyzer runs the analyzer func runAnalyzer(sa *local.IstiodAnalyzer) (local.AnalysisResult, error) { prevLogLevel := scope.Processing.GetOutputLevel() scope.Processing.SetOutputLevel(log.NoneLevel) defer scope.Processing.SetOutputLevel(prevLogLevel) cancel := make(chan struct{}) result, err := sa.Analyze(cancel) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/log/options_test.go
o.stackTraceLevels = c.flagLevels o.SetDefaultOutputLevel(c.scope, c.defaultLevel) if err := Configure(o); err != nil { t.Fatal(err) } if got := FindScope(c.scope).GetOutputLevel(); got != c.expectedLevel { t.Fatalf("got %v want %v", got, c.expectedLevel) } }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 12.5K bytes - Viewed (0)