- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for defaultScopes (0.44 sec)
-
istioctl/pkg/admin/istiodconfig.go
if err != nil { return fmt.Errorf("could not get all scopes: %v", err) } var defaultScopes []*ScopeInfo for _, scope := range allScopes { defaultScopes = append(defaultScopes, &ScopeInfo{ Name: scope.Name, OutputLevel: defaultOutputLevel, StackTraceLevel: defaultStackTraceLevel, }) } err = rs.client.PutScopes(defaultScopes) if err != nil { return err } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 13.5K bytes - Viewed (0) -
pkg/log/default.go
registerScope(GrpcScopeName, "logs from gRPC", 3) } var defaultScope, grpcScope = registerDefaultScopes() // Fatal outputs a message at fatal level. func Fatal(fields any) { defaultScope.Fatal(fields) } // Fatalf uses fmt.Sprintf to construct and log a message at fatal level. func Fatalf(format string, args ...any) { defaultScope.Fatalf(format, args...) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 3.3K bytes - Viewed (0) -
pkg/log/default_test.go
} pt := funcs.Load().(patchTable) pt.exitProcess = func(_ int) { exitCalled = true } funcs.Store(pt) defaultScope.SetOutputLevel(DebugLevel) defaultScope.SetStackTraceLevel(c.stackLevel) defaultScope.SetLogCallers(c.caller) c.f() _ = Sync() }) if exitCalled != c.wantExit { var verb string if c.wantExit {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 7.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/MavenPom.groovy
exclusions: exclusions, optional: optional ) } private MavenScope createScope(def scopeElement, String defaultScope) { def scopeName = scopeElement ? scopeElement.text() : defaultScope def scope = scopes[scopeName] if (!scope) { scope = new MavenScope(name: scopeName) scopes[scopeName] = scope }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.1K bytes - Viewed (0) -
pkg/log/config_test.go
file := dir + "/rot.log" o := DefaultOptions() o.OutputPaths = []string{} o.RotateOutputPath = file if err := Configure(o); err != nil { t.Fatalf("Unable to configure logging: %v", err) } defaultScope.Error("HELLO") Sync() // nolint: errcheck content, err := os.ReadFile(file) if err != nil { t.Errorf("Got failure '%v', expecting success", err) } lines := strings.Split(string(content), "\n")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 10.9K bytes - Viewed (0) -
pkg/log/zapcore_handler.go
// adding file/line number to log output. const callerSkipOffset = 3 func dumpStack(level zapcore.Level, scope *Scope) bool { thresh := toLevel[level] if scope != defaultScope { thresh = ErrorLevel switch level { case zapcore.FatalLevel: thresh = FatalLevel } } return scope.GetStackTraceLevel() >= thresh
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 29 01:05:12 UTC 2023 - 1.3K bytes - Viewed (0) -
pkg/log/uds_test.go
// Clean up all the mssages, and log again. Check that buffer is cleaned up properly. srv.messages = make([]string, 0) yesterday := time.Now().Add(-time.Hour * 24).Truncate(time.Microsecond) defaultScope.LogWithTime(InfoLevel, "test3", yesterday) Sync() // There should only be one message in the buffer if got, want := len(srv.messages), 1; got != want {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 29 01:05:12 UTC 2023 - 3.2K bytes - Viewed (0) -
pkg/log/config.go
} } return nil }, } funcs.Store(pt) opts := []zap.Option{ zap.ErrorOutput(errSink), zap.AddCallerSkip(1), } if defaultScope.GetLogCallers() { opts = append(opts, zap.AddCaller()) } l := defaultScope.GetStackTraceLevel() if l != NoneLevel { opts = append(opts, zap.AddStacktrace(levelToZap[l])) } defaultZapLogger := zap.New(defaultLogger, opts...)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 12.1K bytes - Viewed (0) -
pkg/log/scope_test.go
return errors.New("bad") } funcs.Store(pt) // for now, we just make sure this doesn't crash. To be totally correct, we'd need to capture stderr and // inspect it, but it's just not worth it defaultScope.Error("TestBadWriter") } func BenchmarkLog(b *testing.B) { run := func(name string, f func()) { b.Run(name, func(b *testing.B) { o := testOptions() o.OutputPaths = []string{"/dev/null"}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 17:36:09 UTC 2024 - 11K bytes - Viewed (0)