- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 132 for syslog (0.12 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/cmd/go/testdata/script/cgo_syso_issue29253.txt
env GO111MODULE=off [short] skip # This test tests that we can link in-package syso files that provides symbols # for cgo. See issue 29253. [!cgo] stop [!compiler:gc] stop cc -c -o pkg/o.syso ext.c go build main.go -- ext.c -- // +build ignore int f() { return 42; } -- pkg/pkg.go -- package pkg // extern int f(void); import "C" func init() { if v := C.f(); v != 42 { panic(v) } } -- main.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 450 bytes - Viewed (0) -
src/log/slog/json_handler_test.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package slog import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "log/slog/internal/buffer" "math" "os" "path/filepath" "strings" "testing" "time" ) func TestJSONHandler(t *testing.T) { for _, test := range []struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 11 17:06:26 UTC 2023 - 6.5K bytes - Viewed (0) -
src/log/slog/level.go
// OpenTelemetry's mapping. Subtracting 9 from an OpenTelemetry level in the // DEBUG, INFO, WARN and ERROR ranges converts it to the corresponding slog // Level range. OpenTelemetry also has the names TRACE and FATAL, which slog // does not. But those OpenTelemetry levels can still be represented as slog // Levels by using the appropriate integers. const ( LevelDebug Level = -4 LevelInfo Level = 0 LevelWarn Level = 4 LevelError Level = 8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 30 17:34:43 UTC 2023 - 5.6K bytes - Viewed (0)