logging

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package logging provides a simple logging interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// Debugw logs a message at debug level.
	Debugw(format string, keysAndValues ...any)

	// Infow logs a message at info level.
	Infow(format string, keysAndValues ...any)

	// Warnw logs a message at warn level.
	Warnw(format string, keysAndValues ...any)

	// Errorw logs a message at error level.
	Errorw(format string, keysAndValues ...any)
}

Logger is the interface that wraps the basic logging methods. It is used by the SDK to log detailed information about requests and responses.

type NopLogger

type NopLogger struct{}

NopLogger is a logger that does nothing. It is used by default.

func (NopLogger) Debugw

func (l NopLogger) Debugw(_ string, _ ...any)

Debugw logs a message at debug level.

func (NopLogger) Errorw

func (l NopLogger) Errorw(_ string, _ ...any)

Errorw logs a message at error level.

func (NopLogger) Infow

func (l NopLogger) Infow(_ string, _ ...any)

Infow logs a message at info level.

func (NopLogger) Warnw

func (l NopLogger) Warnw(_ string, _ ...any)

Warnw logs a message at warn level.

Jump to

Keyboard shortcuts

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