logger

package
v3.30.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(msg string, args ...any)

Debugf level logging

func Errorf

func Errorf(msg string, args ...any)

Errorf level logging

func Fatalf

func Fatalf(msg string, args ...any)

Fatalf level logging and terminates the program execution.

func Infof

func Infof(msg string, args ...any)

Infof level logging

func Warnf

func Warnf(msg string, args ...any)

Warnf level logging

Types

type GlogLogger

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

GlogLogger implements the Logger interface for logging using the glog library with configurable call depth.

func (*GlogLogger) Debugf

func (logger *GlogLogger) Debugf(msg string, args ...any)

Debug logs a debug-level message with the specified format and arguments.

func (*GlogLogger) Errorf

func (logger *GlogLogger) Errorf(msg string, args ...any)

Error logs an error-level message with the specified format and arguments.

func (*GlogLogger) Fatalf

func (logger *GlogLogger) Fatalf(msg string, args ...any)

Fatal logs a fatal-level message with the specified format and arguments, then exits the application.

func (*GlogLogger) Infof

func (logger *GlogLogger) Infof(msg string, args ...any)

Info logs an informational-level message with the specified format and optional arguments.

func (*GlogLogger) Warnf

func (logger *GlogLogger) Warnf(msg string, args ...any)

Warn logs a warning-level message with the specified format and arguments.

type Logger

type Logger interface {
	// Debugf level logging
	Debugf(msg string, args ...any)

	// Infof level logging
	Infof(msg string, args ...any)

	// Warnf level logging
	Warnf(msg string, args ...any)

	// Errorf level logging
	Errorf(msg string, args ...any)

	// Fatalf level logging
	Fatalf(msg string, args ...any)
}

func NewGlogLogger

func NewGlogLogger() Logger

Jump to

Keyboard shortcuts

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