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.
Click to show internal directories.
Click to hide internal directories.