Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for messageLen (0.27 sec)

  1. src/encoding/gob/encoder.go

    	// it by hand.
    	message := b.Bytes()
    	messageLen := len(message) - maxLength
    	// Length cannot be bigger than the decoder can handle.
    	if messageLen >= tooBig {
    		enc.setError(errors.New("gob: encoder: message too big"))
    		return
    	}
    	// Encode the length.
    	enc.countState.b.Reset()
    	enc.countState.encodeUint(uint64(messageLen))
    	// Copy the length to be a prefix of the message.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. src/testing/slogtest/slogtest.go

    var cases = []testCase{
    	{
    		name:        "built-ins",
    		explanation: withSource("this test expects slog.TimeKey, slog.LevelKey and slog.MessageKey"),
    		f: func(l *slog.Logger) {
    			l.Info("message")
    		},
    		checks: []check{
    			hasKey(slog.TimeKey),
    			hasKey(slog.LevelKey),
    			hasAttr(slog.MessageKey, "message"),
    		},
    	},
    	{
    		name:        "attrs",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  3. src/log/slog/handler_test.go

    			wantJSON: "{}",
    		},
    		{
    			name:     "remove built-in",
    			replace:  removeKeys(TimeKey, LevelKey, MessageKey),
    			attrs:    attrs,
    			wantText: "a=one b=2",
    			wantJSON: `{"a":"one","b":2}`,
    		},
    		{
    			name:     "preformatted remove built-in",
    			replace:  removeKeys(TimeKey, LevelKey, MessageKey),
    			with:     func(h Handler) Handler { return h.WithAttrs(preAttrs) },
    			attrs:    attrs,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 13:57:53 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation.go

    	}
    	compilationResult.MaxCost = costEst.Max
    	compilationResult.MaxCardinality = maxCardinality
    	compilationResult.Program = prog
    	if rule.MessageExpression != "" {
    		messageEnv := envLoader.MessageExpressionEnv(envSet, rule.MessageExpression)
    		ast, issues := messageEnv.Compile(rule.MessageExpression)
    		if issues != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/log/slog/handler.go

    	// LevelKey is the key used by the built-in handlers for the level
    	// of the log call. The associated value is a [Level].
    	LevelKey = "level"
    	// MessageKey is the key used by the built-in handlers for the
    	// message of the log call. The associated value is a string.
    	MessageKey = "msg"
    	// SourceKey is the key used by the built-in handlers for the source file
    	// and line of the log call. The associated value is a *[Source].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 18:18:13 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  6. pkg/log/config.go

    	NoneLevel:  none,
    }
    
    var defaultEncoderConfig = zapcore.EncoderConfig{
    	TimeKey:        "time",
    	LevelKey:       "level",
    	NameKey:        "scope",
    	CallerKey:      "caller",
    	MessageKey:     "msg",
    	StacktraceKey:  "stack",
    	LineEnding:     zapcore.DefaultLineEnding,
    	EncodeLevel:    zapcore.LowercaseLevelEncoder,
    	EncodeCaller:   zapcore.ShortCallerEncoder,
    	EncodeDuration: zapcore.StringDurationEncoder,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. api/go1.21.txt

    pkg log/slog, const LevelKey ideal-string #56345
    pkg log/slog, const LevelKey = "level" #56345
    pkg log/slog, const LevelWarn = 4 #56345
    pkg log/slog, const LevelWarn Level #56345
    pkg log/slog, const MessageKey ideal-string #56345
    pkg log/slog, const MessageKey = "msg" #56345
    pkg log/slog, const SourceKey ideal-string #56345
    pkg log/slog, const SourceKey = "source" #56345
    pkg log/slog, const TimeKey ideal-string #56345
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc.go

    	for _, result := range results {
    		if result.EvalResult.Type() != celgo.BoolType {
    			return fmt.Errorf("validation expression must return a boolean")
    		}
    		if !result.EvalResult.Value().(bool) {
    			expression := result.ExpressionAccessor.GetExpression()
    
    			message, err := messageFn(result.ExpressionAccessor)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"LevelVar", Type, 21},
    		{"LevelWarn", Const, 21},
    		{"Leveler", Type, 21},
    		{"Log", Func, 21},
    		{"LogAttrs", Func, 21},
    		{"LogValuer", Type, 21},
    		{"Logger", Type, 21},
    		{"MessageKey", Const, 21},
    		{"New", Func, 21},
    		{"NewJSONHandler", Func, 21},
    		{"NewLogLogger", Func, 21},
    		{"NewRecord", Func, 21},
    		{"NewTextHandler", Func, 21},
    		{"Record", Type, 21},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  10. src/internal/trace/traceviewer/static/trace_viewer_full.html

    return res;}
    function normalizeException(e){if(e===undefined||e===null){return{typeName:'UndefinedError',message:'Unknown: null or undefined exception',stack:'Unknown'};}
    if(typeof(e)==='string'){return{typeName:'StringError',message:e,stack:[e]};}
    let typeName;if(e.name){typeName=e.name;}else if(e.constructor){if(e.constructor.name){typeName=e.constructor.name;}else{typeName='AnonymousError';}}else{typeName='ErrorWithNoConstructor';}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top