Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SetLogCallers (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top