- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,731 for Dlog (0.1 sec)
-
src/encoding/gob/example_interface_test.go
// Pass pointer to interface so Encode sees (and hence sends) a value of // interface type. If we passed p directly it would see the concrete type instead. // See the blog post, "The Laws of Reflection" for background. err := enc.Encode(&p) if err != nil { log.Fatal("encode:", err) } } // interfaceDecode decodes the next interface value from the stream and returns it. func interfaceDecode(dec *gob.Decoder) Pythagoras {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 02 00:13:47 UTC 2016 - 2.1K bytes - Viewed (0) -
api/go1.21.txt
pkg log/slog, const LevelDebug = -4 #56345 pkg log/slog, const LevelDebug Level #56345 pkg log/slog, const LevelError = 8 #56345 pkg log/slog, const LevelError Level #56345 pkg log/slog, const LevelInfo = 0 #56345 pkg log/slog, const LevelInfo Level #56345 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 09:39:17 UTC 2023 - 25.6K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/reconciler/reconciler.go
// Ignore goroutinemap.IsAlreadyExists and exponentialbackoff.IsExponentialBackoff errors, they are expected. // Log all other errors. klog.ErrorS(err, "OperationExecutor.UnregisterPlugin failed", "plugin", registeredPlugin) } if err == nil { klog.V(1).InfoS("OperationExecutor.UnregisterPlugin started", "plugin", registeredPlugin) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 6.2K bytes - Viewed (0) -
src/log/slog/example_custom_levels_test.go
const ( LevelTrace = slog.Level(-8) LevelDebug = slog.LevelDebug LevelInfo = slog.LevelInfo LevelNotice = slog.Level(2) LevelWarning = slog.LevelWarn LevelError = slog.LevelError LevelEmergency = slog.Level(12) ) th := slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{ // Set a custom level to show all log output. The default value is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 11 17:06:26 UTC 2023 - 3K bytes - Viewed (0) -
tests/multi_primary_keys_test.go
}, } DB.Save(&blog) blog2 := Blog{ ID: blog.ID, Locale: "EN", } DB.Create(&blog2) if !compareTags(blog.SharedTags, []string{"tag1", "tag2"}) { t.Fatalf("Blog should has two tags") } // Append tag3 := &Tag{Locale: "ZH", Value: "tag3"} DB.Model(&blog).Association("SharedTags").Append([]*Tag{tag3}) if !compareTags(blog.SharedTags, []string{"tag1", "tag2", "tag3"}) {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 12.8K bytes - Viewed (0) -
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) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/doc.go
// license that can be found in the LICENSE file. // Package slog defines an Analyzer that checks for // mismatched key-value pairs in log/slog calls. // // # Analyzer slog // // slog: check for invalid structured logging calls // // The slog checker looks for calls to functions from the log/slog // package that take alternating key-value pairs. It reports calls
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 18:11:19 UTC 2023 - 830 bytes - Viewed (0) -
pkg/kubelet/config/http.go
klog.InfoS("Failed to read pods from URL. Dropping verbosity of this message to V(4)", "err", err) } else { klog.V(4).InfoS("Failed to read pods from URL", "err", err) } s.failureLogs++ } else { if s.failureLogs > 0 { klog.InfoS("Successfully read pods from URL") s.failureLogs = 0 } } } func (s *sourceURL) applyDefaults(pod *api.Pod) error { return applyDefaults(pod, s.url, false, s.nodeName)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 01 07:19:44 UTC 2021 - 4.1K bytes - Viewed (0) -
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) -
src/log/slog/internal/benchmarks/benchmarks.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 25 12:14:46 UTC 2023 - 1.9K bytes - Viewed (0)