logext

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logext provides a utility for logging debug messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
	Println(v ...interface{})
}

Logger is an interface for logging debug messages.

func NewLogger

func NewLogger(output io.Writer) Logger

NewLogger returns a new logger. If the debug flag is set, it logs messages to the provided output. Otherwise, it discards all log messages.

Jump to

Keyboard shortcuts

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