 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const (
	// ConfigName is the name of the ConfigMap that the logging config will be stored in
	ConfigName = "config-logging"
)
    Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(configJSON string, levelOverride string) (*zap.SugaredLogger, zap.AtomicLevel)
NewLogger creates a logger with the supplied configuration. In addition to the logger, it returns AtomicLevel that can be used to change the logging level at runtime. If configuration is empty, a fallback configuration is used. If configuration cannot be used to instantiate a logger, the same fallback configuration is used.
func NewLoggerFromConfig ¶
func NewLoggerFromConfig(config *logging.Config, name string) (*zap.SugaredLogger, zap.AtomicLevel)
NewLoggerFromConfig creates a logger using the provided Config
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.