- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for SetLogCallers (0.18 sec)
-
pkg/log/scope.go
// GetStackTraceLevel returns the stack tracing level associated with the scope. func (s *Scope) GetStackTraceLevel() Level { return s.stackTraceLevel.Load().(Level) } // SetLogCallers adjusts the output level associated with the scope. func (s *Scope) SetLogCallers(logCallers bool) { s.logCallers.Store(logCallers) } // GetLogCallers returns the output level associated with the scope. func (s *Scope) GetLogCallers() bool {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 16:47:01 UTC 2024 - 10.7K bytes - Viewed (0) -
pkg/ctrlz/topics/scopes.go
level, ok := stringToLevel[info.OutputLevel] if ok { s.SetOutputLevel(level) } level, ok = stringToLevel[info.StackTraceLevel] if ok { s.SetStackTraceLevel(level) } s.SetLogCallers(info.LogCallers) w.WriteHeader(http.StatusAccepted) return } fw.RenderError(w, http.StatusBadRequest, fmt.Errorf("unknown scope name: %s", name))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 4K bytes - Viewed (0) -
pkg/log/config.go
continue } if s == OverrideScopeName { // ignore everything else and just apply the override value for _, scope := range allScopes { scope.SetLogCallers(true) } } if scope, ok := allScopes[s]; ok { scope.SetLogCallers(true) } } // If gRPC logging is enabled, turn on gRPC logging automatically if grpcScope.GetOutputLevel() != NoneLevel { options.logGRPC = true }
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/logr_test.go
if lines[len(lines)-1] == "" { return lines[:len(lines)-1] } return lines } func newScope() *Scope { s := &Scope{name: "test"} s.SetOutputLevel(InfoLevel) s.SetStackTraceLevel(NoneLevel) s.SetLogCallers(false) return s } func runLogrTest(t *testing.T, f func(l logr.Logger)) []string { s := newScope() return runLogrTestWithScope(t, s, f) } func mustMatchLength(t *testing.T, l int, items []string) {
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/default_test.go
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 { verb = " never" } t.Errorf("os.Exit%s called", verb)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 7.4K bytes - Viewed (0) -
pkg/log/scope_test.go
pt := funcs.Load().(patchTable) pt.exitProcess = func(_ int) { exitCalled = true } funcs.Store(pt) s.SetOutputLevel(DebugLevel) s.SetStackTraceLevel(c.stackLevel) s.SetLogCallers(c.caller) c.f() _ = Sync() }) if exitCalled != c.wantExit { var verb string if c.wantExit { verb = " never" } t.Errorf("os.Exit%s called", verb)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 17:36:09 UTC 2024 - 11K bytes - Viewed (0)