util

package
v0.0.0-...-b41a118 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FLBTimestampAsTime

func FLBTimestampAsTime(ts interface{}) time.Time

func MapValueOrDefault

func MapValueOrDefault(record map[interface{}]interface{}, key string, defaultValue string) string

func ValueOrDefault

func ValueOrDefault(value string, defaultValue string) string

Types

type Logger

type Logger interface {
	Debug(args ...interface{})
	Debugf(fmt string, args ...interface{})
	Info(args ...interface{})
	Infof(fmt string, args ...interface{})
	Warn(args ...interface{})
	Warnf(fmt string, args ...interface{})
	Error(args ...interface{})
	Errorf(fmt string, args ...interface{})
	Panic(args ...interface{})
	Panicf(fmt string, args ...interface{})
}

func GetLogger

func GetLogger(logLevel zapcore.Level) Logger

Jump to

Keyboard shortcuts

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