logger

package
v1.7.17 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package logger provides functionality for Vald.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v1.0.0

type Logger interface {
	// Debug logs the vals at Debug level.
	Debug(vals ...any)

	// Debugf logs the formatted message at Debug level.
	Debugf(format string, vals ...any)

	// Debugd logs the message with details at Debug level.
	Debugd(msg string, details ...any)

	// Info logs the vals at Info level.
	Info(vals ...any)

	// Infof logs the formatted message at Info level.
	Infof(format string, vals ...any)

	// Infod logs the message with details at Info level.
	Infod(msg string, details ...any)

	// Warn logs the vals at Warn level.
	Warn(vals ...any)

	// Warnf logs the formatted message at Warn level.
	Warnf(format string, vals ...any)

	// Warnd logs the message with details at Warn level.
	Warnd(msg string, details ...any)

	// Error logs the vals at Error level.
	Error(vals ...any)

	// Errorf logs the formatted message at Error level.
	Errorf(format string, vals ...any)

	// Errord logs the message with details at Error level.
	Errord(msg string, details ...any)

	// Fatal logs the vals at Fatal level, then calls os.Exit(1).
	Fatal(vals ...any)

	// Fatalf logs the formatted message at Fatal level, then calls os.Exit(1).
	Fatalf(format string, vals ...any)

	// Fatald logs the message with details at Fatal level, then calls os.Exit(1).
	Fatald(msg string, details ...any)

	// Close calls finalizer of logger implementations.
	Close() error
}

type Type

type Type uint8
const (
	Unknown Type = iota
	GLG
	ZAP
	NOP
)

func Atot

func Atot(str string) Type

func (Type) String

func (m Type) String() string

Jump to

Keyboard shortcuts

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