github.com/cilium/cilium@v1.16.2/pkg/controller/logfields.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  package controller
     5  
     6  import (
     7  	"github.com/cilium/cilium/pkg/logging"
     8  	"github.com/cilium/cilium/pkg/logging/logfields"
     9  )
    10  
    11  // logging field definitions
    12  const (
    13  	// fieldControllerName is the name of the controller
    14  	fieldControllerName = "name"
    15  
    16  	// fieldUUID is the UUID of the controller
    17  	fieldUUID = "uuid"
    18  
    19  	// fieldConsecutiveErrors is the number of consecutive errors of a controller
    20  	fieldConsecutiveErrors = "consecutiveErrors"
    21  )
    22  
    23  var (
    24  	// log is the controller package logger object.
    25  	log = logging.DefaultLogger.WithField(logfields.LogSubsys, "controller")
    26  )