Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 132 for syslog (0.16 sec)

  1. src/runtime/race/README

    To update the .syso files use golang.org/x/build/cmd/racebuild.
    
    internal/amd64v1/race_darwin.syso built with LLVM 51bfeff0e4b0757ff773da6882f4d538996c9b04 and Go e7d582b55dda36e76ce4d0ce770139ca0915b7c5.
    internal/amd64v1/race_freebsd.syso built with LLVM 51bfeff0e4b0757ff773da6882f4d538996c9b04 and Go e7d582b55dda36e76ce4d0ce770139ca0915b7c5.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:19:32 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/log/slog/example_level_handler_test.go

    // license that can be found in the LICENSE file.
    
    package slog_test
    
    import (
    	"context"
    	"log/slog"
    	"log/slog/internal/slogtest"
    	"os"
    )
    
    // A LevelHandler wraps a Handler with an Enabled method
    // that returns false for levels below a minimum.
    type LevelHandler struct {
    	level   slog.Leveler
    	handler slog.Handler
    }
    
    // NewLevelHandler returns a LevelHandler with the given level.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. src/log/slog/internal/benchmarks/handlers_test.go

    			t.Fatal(err)
    		}
    		got := h.ringBuffer[0]
    		if !got.Time.Equal(r.Time) || !slices.EqualFunc(attrSlice(got), attrSlice(r), slog.Attr.Equal) {
    			t.Errorf("got %+v, want %+v", got, r)
    		}
    	})
    }
    
    func attrSlice(r slog.Record) []slog.Attr {
    	var as []slog.Attr
    	r.Attrs(func(a slog.Attr) bool { as = append(as, a); return true })
    	return as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. src/log/slog/internal/benchmarks/benchmarks.go

    	testInt      = 32768
    	testDuration = 23 * time.Second
    	testError    = errors.New("fail")
    )
    
    var testAttrs = []slog.Attr{
    	slog.String("string", testString),
    	slog.Int("status", testInt),
    	slog.Duration("duration", testDuration),
    	slog.Time("time", testTime),
    	slog.Any("error", testError),
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 25 12:14:46 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/log/slog/internal/slogtest/slogtest.go

    // Package slogtest contains support functions for testing slog.
    package slogtest
    
    import "log/slog"
    
    // RemoveTime removes the top-level time attribute.
    // It is intended to be used as a ReplaceAttr function,
    // to make example output deterministic.
    func RemoveTime(groups []string, a slog.Attr) slog.Attr {
    	if a.Key == slog.TimeKey && len(groups) == 0 {
    		return slog.Attr{}
    	}
    	return a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 20:33:11 UTC 2023
    - 553 bytes
    - Viewed (0)
  6. src/testing/slogtest/slogtest.go

    			l.Info("msg", "a", "b", slog.Group("G", slog.String("c", "d")), "e", "f")
    		},
    		checks: []check{
    			hasAttr("a", "b"),
    			inGroup("G", hasAttr("c", "d")),
    			hasAttr("e", "f"),
    		},
    	},
    	{
    		name:        "empty-group",
    		explanation: withSource("a Handler should ignore an empty group"),
    		f: func(l *slog.Logger) {
    			l.Info("msg", "a", "b", slog.Group("G"), "e", "f")
    		},
    		checks: []check{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/stack_windows.go

    		}()
    	}
    	wg.Wait()
    	mem2, err := getPagefileUsage()
    	if err != nil {
    		panic(err)
    	}
    	// assumes that this process creates 1 thread for each
    	// thread locked goroutine plus extra 10 threads
    	// like sysmon and others
    	print((mem2 - mem1) / (threadCount + 10))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:31 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/link_syso_issue33139.txt

    # Test that we can use the external linker with a host syso file that is
    # embedded in a package, that is referenced by a Go assembly function.
    # See issue 33139.
    
    [!compiler:gc] skip
    [!cgo] skip
    [short] skip 'invokes system C compiler'
    
    # External linking is not supported on linux/ppc64.
    # See: https://github.com/golang/go/issues/8912
    [GOOS:linux] [GOARCH:ppc64] skip
    
    cc -c -o syso/objTestImpl.syso syso/src/objTestImpl.c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 1K bytes
    - Viewed (0)
  9. src/log/slog/example_logvaluer_secret_test.go

    // license that can be found in the LICENSE file.
    
    package slog_test
    
    import (
    	"log/slog"
    	"log/slog/internal/slogtest"
    	"os"
    )
    
    // A token is a secret value that grants permissions.
    type Token string
    
    // LogValue implements slog.LogValuer.
    // It avoids revealing the token.
    func (Token) LogValue() slog.Value {
    	return slog.StringValue("REDACTED_TOKEN")
    }
    
    // This example demonstrates a Value that replaces itself
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 906 bytes
    - Viewed (0)
  10. src/crypto/internal/boring/README.md

    ---
    
    This directory holds the core of the BoringCrypto implementation
    as well as the build scripts for the module itself: syso/*.syso.
    
    syso/goboringcrypto_linux_amd64.syso is built with:
    
    	GOARCH=amd64 ./build.sh
    
    syso/goboringcrypto_linux_arm64.syso is built with:
    
    	GOARCH=arm64 ./build.sh
    
    Both run on an x86 Debian Linux system using Docker.
    For the arm64 build to run on an x86 system, you need
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top