logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: 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 Loggable

type Loggable interface {
	SetLogger(Logger)
}

Loggable defines a contract for implementations that can write to the log.

type Logger

type Logger interface {
	Info(msg string)
	Debug(msg string)
	Warn(msg string)
	Error(msg string, err error)
}

Logger defines the contract for loggers.

type NopLogger

type NopLogger struct{}

func (*NopLogger) Debug

func (*NopLogger) Debug(msg string)

func (*NopLogger) Error

func (*NopLogger) Error(msg string, err error)

func (*NopLogger) Info

func (*NopLogger) Info(msg string)

func (*NopLogger) Warn

func (*NopLogger) Warn(msg string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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