Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for registerScope (0.16 sec)

  1. pkg/log/scope_test.go

    func TestMultipleScopesWithSameName(t *testing.T) {
    	z1 := RegisterScope("zzzz", "z")
    	z2 := RegisterScope("zzzz", "z")
    
    	if z1 != z2 {
    		t.Error("Expecting the same scope objects, got different ones")
    	}
    }
    
    func TestFind(t *testing.T) {
    	if z := FindScope("TestFind"); z != nil {
    		t.Error("Found scope, but expected it wouldn't exist")
    	}
    
    	_ = RegisterScope("TestFind", "")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. cni/pkg/scopes/scopes.go

    package scopes
    
    import (
    	"istio.io/istio/cni/pkg/constants"
    	"istio.io/istio/pkg/log"
    )
    
    // Required to get global logging to work
    var (
    	CNIAgent  = log.RegisterScope(constants.CNIAgentLogScope, "CNI agent scope")
    	CNIPlugin = log.RegisterScope(constants.CNIPluginLogScope, "CNI plugin scope")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 894 bytes
    - Viewed (0)
  3. pkg/config/analysis/scope/scope.go

    import "istio.io/istio/pkg/log"
    
    var (
    	// Analysis is a logging scope used by configuration analysis component.
    	Analysis = log.RegisterScope("analysis", "Scope for configuration analysis runtime")
    	// Processing is a logging scope used by configuration processing pipeline.
    	Processing = log.RegisterScope("processing", "Scope for configuration processing runtime")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 951 bytes
    - Viewed (0)
  4. pkg/log/scope.go

    	lock   sync.RWMutex
    )
    
    // RegisterScope registers a new logging scope. If the same name is used multiple times
    // for a single process, the same Scope struct is returned.
    //
    // Scope names cannot include colons, commas, or periods.
    func RegisterScope(name string, description string) *Scope {
    	// We only allow internal callers to set callerSkip
    	return registerScope(name, description, 0)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 16:47:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. pilot/pkg/model/log.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package model
    
    import (
    	istiolog "istio.io/istio/pkg/log"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 699 bytes
    - Viewed (0)
  6. pkg/test/scopes/scopes.go

    //  limitations under the License.
    
    package scopes
    
    import "istio.io/istio/pkg/log"
    
    // Framework is the general logging scope for the framework.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 786 bytes
    - Viewed (0)
  7. pkg/log/default.go

    package log
    
    // These functions enable logging using a global Scope. See scope.go for usage information.
    
    func registerDefaultScopes() (defaults *Scope, grpc *Scope) {
    	return registerScope(DefaultScopeName, "Unscoped logging messages.", 1),
    		registerScope(GrpcScopeName, "logs from gRPC", 3)
    }
    
    var defaultScope, grpcScope = registerDefaultScopes()
    
    // Fatal outputs a message at fatal level.
    func Fatal(fields any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. 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)
  9. operator/pkg/util/common.go

    // limitations under the License.
    
    package util
    
    import (
    	"fmt"
    	"net/url"
    	"strings"
    
    	"istio.io/istio/pkg/log"
    )
    
    var scope = log.RegisterScope("util", "util")
    
    // IsFilePath reports whether the given URL is a local file path.
    func IsFilePath(path string) bool {
    	return strings.Contains(path, "/") || strings.Contains(path, ".")
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. pilot/pkg/security/authz/builder/logger.go

    package builder
    
    import (
    	"fmt"
    	"strings"
    
    	"github.com/hashicorp/go-multierror"
    
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/util/istiomultierror"
    )
    
    var authzLog = log.RegisterScope("authorization", "Istio Authorization Policy")
    
    type AuthzLogger struct {
    	debugMsg []string
    	errMsg   *multierror.Error
    }
    
    func (al *AuthzLogger) AppendDebugf(format string, args ...any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top