log

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package log provides a common interface for logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// Logs the build information of the command or module to the given writer.
	Info(writer io.Writer, info *info.Info, raw bool)
	// Exec logs the internal command execution for debugging to the given writer.
	Exec(writer io.Writer, dir string, args ...string)
	// Logs the call of the command to the given writer.
	Call(writer io.Writer, args ...string)
	// Logs the given error message and error to the given writer.
	Error(writer io.Writer, message string, err error)
	// Logs the given message to the given writer.
	Message(writer io.Writer, message string)
}

Logger provides a common interface for logging.

func NewLogger

func NewLogger() Logger

NewLogger creates a new default logger.

Jump to

Keyboard shortcuts

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