- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SetLogCallers (0.2 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/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/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)