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