debug

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: GPL-3.0 Imports: 3 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 struct {
	Impl LoggerImpl
}

A Logger can be used to log debug messages.

func (Logger) Log

func (l Logger) Log(v ...interface{})

Log logs a message with fmt.Sprint. This is a nop if Impl is nil.

func (Logger) Logf

func (l Logger) Logf(f string, v ...interface{})

Logf logs a message with fmt.Sprintf. This is a nop if Impl is nil.

func (Logger) Logfn

func (l Logger) Logfn(fn func(*log.Logger))

Logfn creates a log.Logger and calls FN with it. This is a nop if Impl is nil.

type LoggerImpl

type LoggerImpl interface {
	Helper()
	Write(string)
}

LoggerImpl implements the necessary methods to log messages.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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