log

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is a wrapper that prefix loglines with keyspace/shard

func NewVTGRLogger

func NewVTGRLogger(keyspace, shard string) *Logger

NewVTGRLogger creates a new logger

func (*Logger) Error

func (logger *Logger) Error(msg string)

Error formats arguments like fmt.Print

func (*Logger) Errorf

func (logger *Logger) Errorf(format string, args ...any)

Errorf formats arguments like fmt.Printf.

func (*Logger) Info

func (logger *Logger) Info(msg string)

Info formats arguments like fmt.Print

func (*Logger) Infof

func (logger *Logger) Infof(format string, args ...any)

Infof formats arguments like fmt.Printf.

func (*Logger) Warning

func (logger *Logger) Warning(msg string)

Warning formats arguments like fmt.Print

func (*Logger) Warningf

func (logger *Logger) Warningf(format string, args ...any)

Warningf formats arguments like fmt.Printf.

Jump to

Keyboard shortcuts

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