- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for defaultScopes (0.15 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/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/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)