slog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package slog is a temporary interface to support older versions of Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, args ...any)
	Error(msg string, args ...any)
	Info(msg string, args ...any)
	Warn(msg string, args ...any)
}

type Null

type Null struct{}

Null is a logger that does nothing.

func (Null) Debug

func (n Null) Debug(msg string, args ...any)

func (Null) Error

func (n Null) Error(msg string, args ...any)

func (Null) Info

func (n Null) Info(msg string, args ...any)

func (Null) Warn

func (n Null) Warn(msg string, args ...any)

Jump to

Keyboard shortcuts

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