logging

package
v0.0.0-...-debdcc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logging wraps the zap logging package to provide easier access and initialization of the logger

Index

Constants

This section is empty.

Variables

View Source
var RawLogger = InitLogger("info", "")

RawLogger is the raw global logger object used for calls wrapped by the logging package

Functions

func Debug

func Debug(args ...interface{})

Debug wraps zap's SugaredLogger.Debug()

func Debugf

func Debugf(template string, args ...interface{})

Debugf wraps zap's SugaredLogger.Debugf()

func Error

func Error(args ...interface{})

Error wraps zap's SugaredLogger.Error()

func Errorf

func Errorf(template string, args ...interface{})

Errorf wraps zap's SugaredLogger.Errorf()

func Fatal

func Fatal(args ...interface{})

Fatal wraps zap's SugaredLogger.Fatal()

func Fatalf

func Fatalf(template string, args ...interface{})

Fatalf wraps zap's SugaredLogger.Fatalf()

func Info

func Info(args ...interface{})

Info wraps zap's SugaredLogger.Info()

func Infof

func Infof(template string, args ...interface{})

Infof wraps zap's SugaredLogger.Infof()

func InitLogger

func InitLogger(logLevelString string, clusterID string) *zap.SugaredLogger

InitLogger initializes a cluster-id specific child logger

func Warn

func Warn(args ...interface{})

Warn wraps zap's SugaredLogger.Warn()

func Warnf

func Warnf(template string, args ...interface{})

Warnf wraps zap's SugaredLogger.Warnf()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL