Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 168 for syslog (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/log/slog/example_logvaluer_group_test.go

    package slog_test
    
    import "log/slog"
    
    type Name struct {
    	First, Last string
    }
    
    // LogValue implements slog.LogValuer.
    // It returns a group containing the fields of
    // the Name, so that they appear together in the log output.
    func (n Name) LogValue() slog.Value {
    	return slog.GroupValue(
    		slog.String("first", n.First),
    		slog.String("last", n.Last))
    }
    
    func ExampleLogValuer_group() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 20:55:33 UTC 2023
    - 825 bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/InternetDomainName.java

       * #isPublicSuffix() public suffix}. For example, for {@code x.adwords.google.co.uk} it returns
       * {@code google.co.uk}, since {@code co.uk} is a public suffix. Similarly, for {@code
       * myblog.blogspot.com} it returns the same domain, {@code myblog.blogspot.com}, since {@code
       * blogspot.com} is a public suffix.
       *
       * <p>If {@link #isTopPrivateDomain()} is true, the current domain name instance is returned.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. guava/src/com/google/common/net/InternetDomainName.java

       * #isPublicSuffix() public suffix}. For example, for {@code x.adwords.google.co.uk} it returns
       * {@code google.co.uk}, since {@code co.uk} is a public suffix. Similarly, for {@code
       * myblog.blogspot.com} it returns the same domain, {@code myblog.blogspot.com}, since {@code
       * blogspot.com} is a public suffix.
       *
       * <p>If {@link #isTopPrivateDomain()} is true, the current domain name instance is returned.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  7. src/log/slog/slogtest_test.go

    	"encoding/json"
    	"fmt"
    	"io"
    	"log/slog"
    	"strings"
    	"testing"
    	"testing/slogtest"
    )
    
    func TestSlogtest(t *testing.T) {
    	for _, test := range []struct {
    		name  string
    		new   func(io.Writer) slog.Handler
    		parse func([]byte) (map[string]any, error)
    	}{
    		{"JSON", func(w io.Writer) slog.Handler { return slog.NewJSONHandler(w, nil) }, parseJSON},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:50:22 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprog/syscall_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.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/testdata/tsan11.go

    // license that can be found in the LICENSE file.
    
    package main
    
    // This program hung when run under the C/C++ ThreadSanitizer. TSAN defers
    // asynchronous signals until the signaled thread calls into libc. The runtime's
    // sysmon goroutine idles itself using direct usleep syscalls, so it could
    // run for an arbitrarily long time without triggering the libc interceptors.
    // See https://golang.org/issue/18717.
    
    import (
    	"os"
    	"os/signal"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. src/log/internal/internal.go

    // license that can be found in the LICENSE file.
    
    // Package internal contains definitions used by both log and log/slog.
    package internal
    
    // DefaultOutput holds a function which calls the default log.Logger's
    // output function.
    // It allows slog.defaultHandler to call into an unexported function of
    // the log package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 18:33:50 UTC 2023
    - 487 bytes
    - Viewed (0)
Back to top