- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for SetStackTraceLevel (1.32 sec)
-
pkg/log/scope.go
} // GetOutputLevel returns the output level associated with the scope. func (s *Scope) GetOutputLevel() Level { return s.outputLevel.Load().(Level) } // SetStackTraceLevel adjusts the stack tracing level associated with the scope. func (s *Scope) SetStackTraceLevel(l Level) { s.stackTraceLevel.Store(l) } // GetStackTraceLevel returns the stack tracing level associated with the scope.
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
if s := log.FindScope(name); s != nil { 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/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) }
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 := 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 { verb = " never"
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" }
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.go
return err } // update the stack tracing levels of all listed scopes if err := processLevels(allScopes, options.stackTraceLevels, func(s *Scope, l Level) { s.SetStackTraceLevel(l) }); err != nil { return err } // update the caller location setting of all listed scopes sc := strings.Split(options.logCallers, ",") for _, s := range sc { if s == "" { continue
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 12.1K bytes - Viewed (0)