- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for zap (0.13 sec)
-
pkg/log/config.go
}, } funcs.Store(pt) opts := []zap.Option{ zap.ErrorOutput(errSink), zap.AddCallerSkip(1), } if defaultScope.GetLogCallers() { opts = append(opts, zap.AddCaller()) } l := defaultScope.GetStackTraceLevel() if l != NoneLevel { opts = append(opts, zap.AddStacktrace(levelToZap[l])) } defaultZapLogger := zap.New(defaultLogger, opts...)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 12.1K bytes - Viewed (0) -
pkg/log/config_test.go
grpclog.Info("grpc-info") // output directly to zap zap.L().Error("zap-error") zap.L().Warn("zap-warn") zap.L().Info("zap-info") zap.L().Debug("zap-debug") l := zap.L().With(zap.String("a", "b")) l.Error("zap-with") entry := zapcore.Entry{ Message: "zap-write", Level: zapcore.ErrorLevel, } _ = zap.L().Core().Write(entry, nil)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 26 20:38:10 UTC 2024 - 10.9K bytes - Viewed (0) -
pkg/log/logr.go
// See the License for the specific language governing permissions and // limitations under the License. package log import ( "fmt" "github.com/go-logr/logr" ) // zapLogger is a logr.Logger that uses Zap to log. This is needed to get // libraries, namely Kubernetes/klog, that use logr, to use our standard logging. // This enables standard formatting, scope filtering, and options. The logr
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3K bytes - Viewed (0) -
pkg/volume/util/atomic_writer_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 09:02:45 UTC 2024 - 30.5K bytes - Viewed (0) -
LICENSES/vendor/go.uber.org/zap/LICENSE
= vendor/go.uber.org/zap licensed under: = Copyright (c) 2016-2017 Uber Technologies, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 08 04:49:00 UTC 2020 - 1.2K bytes - Viewed (0) -
internal/config/etcd/etcd.go
cfg.DialKeepAliveTime = defaultDialKeepAlive // Disable etcd client SDK logging, etcd client // incorrectly starts logging in unexpected data // format. cfg.LogConfig = &zap.Config{ Level: zap.NewAtomicLevelAt(zap.FatalLevel), Encoding: "console", } cfg.Endpoints = etcdEndpoints cfg.CoreDNSPath = env.Get(EnvEtcdCoreDNSPath, kvs.Get(CoreDNSPath))
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal_test.go
implicitTable := []Case{ {map[string][]int{}, map[string][]int(nil), true}, {[]int{}, []int(nil), true}, {map[string][]int{"foo": nil}, map[string][]int{"foo": {}}, true}, {Zap{A: nil, B: map[string][]int{"foo": nil}}, Zap{A: []int{}, B: map[string][]int{"foo": {}}}, true}, } for _, item := range implicitTable { if e, a := item.equal, e.DeepEqual(item.a, item.b); e != a {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 14 18:55:26 UTC 2022 - 4.4K bytes - Viewed (0) -
pkg/log/uds.go
// limitations under the License. package log import ( "bytes" "context" "encoding/json" "fmt" "net" "net/http" "sync" "time" "go.uber.org/zap/buffer" "go.uber.org/zap/zapcore" ) // An udsCore write entries to an UDS server with HTTP Post. Log messages will be encoded into a JSON array. type udsCore struct { client http.Client minimumLevel zapcore.Level
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 16 00:20:01 UTC 2024 - 3.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/testserver/test_server.go
package testserver import ( "fmt" "net" "net/url" "os" "strconv" "testing" "time" clientv3 "go.etcd.io/etcd/client/v3" "go.etcd.io/etcd/server/v3/embed" "go.uber.org/zap/zapcore" "go.uber.org/zap/zaptest" "google.golang.org/grpc" ) // getAvailablePort returns a TCP port that is available for binding. func getAvailablePorts(count int) ([]int, error) { ports := []int{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 06 11:40:40 UTC 2023 - 3.6K bytes - Viewed (0) -
src/debug/gosym/symtab_test.go
{Sym{goVersion: ver120, Name: "go:(*struct { sync.Mutex; math/big.table [64]math/big"}, ""}, {Sym{goVersion: ver120, Name: "go.uber.org/zap/buffer.(*Buffer).AppendString"}, "go.uber.org/zap/buffer"}, {Sym{goVersion: ver118, Name: "type..eq.[9]debug/elf.intName"}, ""}, {Sym{goVersion: ver118, Name: "type..hash.debug/elf.ProgHeader"}, ""},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 09 11:28:56 UTC 2022 - 4.3K bytes - Viewed (0)