Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FatalEnabled (0.29 sec)

  1. pkg/log/default_test.go

    			}
    
    			if c.errorEnabled != ErrorEnabled() {
    				t.Errorf("Got %v, expecting %v", ErrorEnabled(), c.errorEnabled)
    			}
    
    			if c.fatalEnabled != FatalEnabled() {
    				t.Errorf("Got %v, expecting %v", FatalEnabled(), c.fatalEnabled)
    			}
    		})
    	}
    }
    
    func TestDefaultWithLabel(t *testing.T) {
    	lines, err := captureStdout(func() {
    		Configure(DefaultOptions())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. pkg/log/default.go

    func Fatalf(format string, args ...any) {
    	defaultScope.Fatalf(format, args...)
    }
    
    // FatalEnabled returns whether output of messages using this scope is currently enabled for fatal-level output.
    func FatalEnabled() bool {
    	return defaultScope.FatalEnabled()
    }
    
    // Error outputs a message at error level.
    func Error(fields any) {
    	defaultScope.Error(fields)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. pkg/log/scope_test.go

    			}
    
    			if c.errorEnabled != s.ErrorEnabled() {
    				t.Errorf("Got %v, expected %v", s.ErrorEnabled(), c.errorEnabled)
    			}
    
    			if c.fatalEnabled != s.FatalEnabled() {
    				t.Errorf("Got %v, expected %v", s.FatalEnabled(), c.fatalEnabled)
    			}
    
    			if c.level != s.GetOutputLevel() {
    				t.Errorf("Got %v, expected %v", s.GetOutputLevel(), c.level)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. pkg/log/scope.go

    	if s.GetOutputLevel() >= FatalLevel {
    		msg := maybeSprintf(format, args)
    		s.emit(zapcore.FatalLevel, msg)
    	}
    }
    
    // FatalEnabled returns whether output of messages using this scope is currently enabled for fatal-level output.
    func (s *Scope) FatalEnabled() bool {
    	return s.GetOutputLevel() >= FatalLevel
    }
    
    // Error outputs a message at error level.
    func (s *Scope) Error(msg any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 16:47:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top