Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,491 for Dlog (0.23 sec)

  1. src/runtime/debuglog_test.go

    		runtime.Dlog().I(i).S(longString).End()
    		fmt.Fprintf(&want, "[] %d %s\n", i, longString)
    	}
    	log := runtime.DumpDebugLog()
    
    	// Check for "lost" message.
    	lost := regexp.MustCompile(`^>> begin log \d+; lost first \d+KB <<\n`)
    	if !lost.MatchString(log) {
    		t.Fatalf("want matching %s, got %q", lost, log)
    	}
    	idx := lost.FindStringIndex(log)
    	// Strip lost message.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 16:59:26 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  2. src/runtime/export_debuglog_test.go

    // Export debuglog guts for testing.
    
    package runtime
    
    const DlogEnabled = dlogEnabled
    
    const DebugLogBytes = debugLogBytes
    
    const DebugLogStringLimit = debugLogStringLimit
    
    var Dlog = dlog
    
    func (l *dlogger) End()                  { l.end() }
    func (l *dlogger) B(x bool) *dlogger     { return l.b(x) }
    func (l *dlogger) I(x int) *dlogger      { return l.i(x) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 16:49:45 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. src/runtime/debuglog.go

    // license that can be found in the LICENSE file.
    
    // This file provides an internal debug logging facility. The debug
    // log is a lightweight, in-memory, per-M ring buffer. By default, the
    // runtime prints the debug log on panic.
    //
    // To print something to the debug log, call dlog to obtain a dlogger
    // and use the methods on that to add values. The values will be
    // space-separated in the output (much like println).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tlog.go

    // license that can be found in the LICENSE file.
    
    // Package tlog implements a tamper-evident log
    // used in the Go module go.sum database server.
    //
    // This package follows the design of Certificate Transparency (RFC 6962)
    // and its proofs are compatible with that system.
    // See TestCertificateTransparency.
    package tlog
    
    import (
    	"crypto/sha256"
    	"encoding/base64"
    	"errors"
    	"fmt"
    	"math/bits"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  5. src/cmd/vet/testdata/slog/slog.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the slog checker.
    
    package slog
    
    import "log/slog"
    
    func SlogTest() {
    	slog.Info("msg", "a") // ERROR "call to slog.Info missing a final value"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 18:11:19 UTC 2023
    - 338 bytes
    - Viewed (0)
  6. pkg/log/klog.go

    // limitations under the License.
    
    package log
    
    import (
    	goflag "flag"
    	"fmt"
    	"sync"
    
    	"github.com/spf13/pflag"
    	"k8s.io/klog/v2"
    )
    
    var (
    	KlogScope     = RegisterScope("klog", "")
    	configureKlog = sync.Once{}
    )
    
    // EnableKlogWithCobra enables klog to work with cobra / pflags.
    // k8s libraries like client-go use klog.
    func EnableKlogWithCobra() {
    	gf := klogVerboseFlag()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    		}
    	})
    	return nil, nil
    }
    
    func isAttr(t types.Type) bool {
    	return analysisutil.IsNamedType(t, "log/slog", "Attr")
    }
    
    // shortName returns a name for the function that is shorter than FullName.
    // Examples:
    //
    //	"slog.Info" (instead of "log/slog.Info")
    //	"slog.Logger.With" (instead of "(*log/slog.Logger).With")
    func shortName(fn *types.Func) string {
    	var r string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. operator/pkg/util/clog/clog.go

    	stdOut io.Writer
    	stdErr io.Writer
    	scope  *log.Scope
    }
    
    // NewConsoleLogger creates a new logger and returns a pointer to it.
    // stdOut and stdErr can be used to capture output for testing. If scope is nil, the default scope is used.
    func NewConsoleLogger(stdOut, stdErr io.Writer, scope *log.Scope) *ConsoleLogger {
    	s := scope
    	if s == nil {
    		s = log.RegisterScope(log.DefaultScopeName, log.DefaultScopeName)
    	}
    	return &ConsoleLogger{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. tools/bug-report/pkg/testdata/input/format_json.log

    Siyi Wang <******@****.***> 1684532673 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 19 21:44:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. pkg/registry/core/pod/rest/log.go

    )
    
    // LogREST implements the log endpoint for a Pod
    type LogREST struct {
    	KubeletConn client.ConnectionInfoGetter
    	Store       *genericregistry.Store
    }
    
    // LogREST implements GetterWithOptions
    var _ = rest.GetterWithOptions(&LogREST{})
    
    // New creates a new Pod log options object
    func (r *LogREST) New() runtime.Object {
    	// TODO - return a resource that represents a log
    	return &api.Pod{}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 24 10:50:43 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top