log

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, MIT Imports: 0 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 interface {
	Debug(message string, args ...any)
	Info(message string, args ...any)
	Warn(message string, args ...any)
	Error(message string, args ...any)
}

Logger is used for logging by the RPC system. Each method logs messages at a different level, but otherwise has the same semantics:

  • Message is a human-readable description of the log event.
  • Args is a sequenece of key, value pairs, where the keys must be strings and the values may be any type.
  • The methods may not block for long periods of time.

This interface is designed such that it is satisfied by *slog.Logger.

Directories

Path Synopsis
Package test_log is a generated GoMock package.
Package test_log is a generated GoMock package.

Jump to

Keyboard shortcuts

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