Discover Packages
github.com/u-root/uio
ulog
package
Version:
v0.0.0-...-d2acac8
Opens a new window with list of versions in this module.
Published: Feb 24, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package ulog exposes logging via a Go interface.
ulog has three implementations of the Logger interface: a Go standard
library "log" package Logger and a test Logger that logs via a test's
testing.TB.Logf. To use the test logger import "ulog/ulogtest".
type Logger interface {
Printf(format string , v ...interface{})
}
Logger is a log receptacle.
It puts your information somewhere for safekeeping.
Log is a Logger that prints to the log package's default logger.
var Null Logger = emptyLogger{}
Null is a logger that prints nothing.
Source Files
¶
Directories
¶
Package ulogtest implement the Logger interface via a test's testing.TB.Logf.
Package ulogtest implement the Logger interface via a test's testing.TB.Logf.
Click to show internal directories.
Click to hide internal directories.